summaryrefslogtreecommitdiff
path: root/src/common/nullpo.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-06-19 12:48:19 +0200
committerHaruna <haru@dotalux.com>2015-06-19 12:48:19 +0200
commit61f0dcb9a812d057e28c53837327f99bcea4733e (patch)
tree76c299f94ef60fa6007321b8c403ebc93d8027c1 /src/common/nullpo.c
parentec7241c953392938cd3a8740bacb4c869636766f (diff)
parentf2fbdc16a14d07e0895cc09eeba689bc556481d2 (diff)
downloadhercules-61f0dcb9a812d057e28c53837327f99bcea4733e.tar.gz
hercules-61f0dcb9a812d057e28c53837327f99bcea4733e.tar.bz2
hercules-61f0dcb9a812d057e28c53837327f99bcea4733e.tar.xz
hercules-61f0dcb9a812d057e28c53837327f99bcea4733e.zip
Merge pull request #532 from MishimaHaruna/includes
Include paths
Diffstat (limited to 'src/common/nullpo.c')
-rw-r--r--src/common/nullpo.c10
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);
}