diff options
Diffstat (limited to 'src/common/nullpo.c')
-rw-r--r-- | src/common/nullpo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/nullpo.c b/src/common/nullpo.c index 97b206835..a8980885f 100644 --- a/src/common/nullpo.c +++ b/src/common/nullpo.c @@ -6,6 +6,8 @@ #include "nullpo.h" +#include "common/showmsg.h" + #include <stdio.h> #include <stdarg.h> #include <stdlib.h> @@ -14,8 +16,6 @@ #include <execinfo.h> #endif -#include "../common/showmsg.h" - struct nullpo_interface nullpo_s; /** @@ -43,11 +43,11 @@ void assert_report(const char *file, int line, const char *func, const char *tar ShowError("--- %s --------------------------------------------\n", title); ShowError("%s:%d: '%s' in function `%s'\n", file, line, targetname, func); #ifdef __GNUC__ - size = backtrace (array, 10); - strings = backtrace_symbols (array, size); + size = (int)backtrace(array, 10); + strings = backtrace_symbols(array, size); for (i = 0; i < size; i++) ShowError("%s\n", strings[i]); - free (strings); + free(strings); #endif ShowError("--- end %s ----------------------------------------\n", title); } |