From 729ed4f768d5e43f7db89422e22bea081708b6c7 Mon Sep 17 00:00:00 2001 From: vemax78 Date: Sat, 24 Jan 2015 13:17:47 +0100 Subject: [PATCH] Use the capwap_exit instead of exit --- src/common/capwap_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/capwap_debug.h b/src/common/capwap_debug.h index e0ec7b8..b20b700 100644 --- a/src/common/capwap_debug.h +++ b/src/common/capwap_debug.h @@ -3,7 +3,7 @@ #ifdef DEBUG -#define ASSERT(expr) if (!(expr)) { capwap_logging_fatal("Assertion failed \'%s\': %s(%d)", #expr, __FILE__, __LINE__); exit(1); } +#define ASSERT(expr) if (!(expr)) { capwap_logging_fatal("Assertion failed \'%s\': %s(%d)", #expr, __FILE__, __LINE__); capwap_exit(CAPWAP_ASSERT_CONDITION); } /* Custom memory management */ #define capwap_alloc(x) capwap_alloc_debug(x, __FILE__, __LINE__)