summaryrefslogtreecommitdiff
path: root/lib/zassert.h
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-08-09 11:49:42 +0200
committerwhitespace / reindent <invalid@invalid.invalid>2017-08-09 12:03:17 +0200
commitac4d0be5874fafd14212d6007fff7495edc9b152 (patch)
tree5e2f0d3189de928c849f9983406389ade3b098cb /lib/zassert.h
parent76a86854181c27819e5cf71b12ae1fa5ccd9e02a (diff)
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zassert.h')
-rw-r--r--lib/zassert.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/zassert.h b/lib/zassert.h
index bf0a851ba8..35967db472 100644
--- a/lib/zassert.h
+++ b/lib/zassert.h
@@ -16,15 +16,15 @@
* You should have received a copy of the GNU General Public License
* along with Quagga; see the file COPYING. If not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * 02111-1307, USA.
*/
#ifndef _QUAGGA_ASSERT_H
#define _QUAGGA_ASSERT_H
-extern void _zlog_assert_failed (const char *assertion, const char *file,
- unsigned int line, const char *function)
- __attribute__ ((noreturn));
+extern void _zlog_assert_failed(const char *assertion, const char *file,
+ unsigned int line, const char *function)
+ __attribute__((noreturn));
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define __ASSERT_FUNCTION __func__
@@ -34,9 +34,10 @@ extern void _zlog_assert_failed (const char *assertion, const char *file,
#define __ASSERT_FUNCTION NULL
#endif
-#define zassert(EX) ((void)((EX) ? 0 : \
- (_zlog_assert_failed(#EX, __FILE__, __LINE__, \
- __ASSERT_FUNCTION), 0)))
+#define zassert(EX) \
+ ((void)((EX) ? 0 : (_zlog_assert_failed(#EX, __FILE__, __LINE__, \
+ __ASSERT_FUNCTION), \
+ 0)))
#undef assert
#define assert(EX) zassert(EX)