summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2009-12-08 15:15:14 +0100
committerMichal Zima <xhire@mujmalysvet.cz>2009-12-08 15:18:06 +0100
commitdf8a2c657b17a0b0bb7f990d6adbb40d514af82c (patch)
tree6be48154d8a22c2ea82efe429ad72acfe8447d90 /src
parentd19e0c494ab4ea44b54467bae37c1f8e9f155cd0 (diff)
Bugfix of message macros
Diffstat (limited to 'src')
-rw-r--r--src/base/index.c2
-rw-r--r--src/base/msg.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/src/base/index.c b/src/base/index.c
index 1620591..a320443 100644
--- a/src/base/index.c
+++ b/src/base/index.c
@@ -103,7 +103,7 @@ void index_add(list_t *list, int key, void *data)
error("Cyclic error");
printIndexItem(item);
printListIndexItem(list);
- abort(0);
+ abort();
}
#endif /* DEBUG_INDEX */
diff --git a/src/base/msg.h b/src/base/msg.h
index e9bdb3b..403100c 100644
--- a/src/base/msg.h
+++ b/src/base/msg.h
@@ -7,12 +7,12 @@
#define debug(msg,arg...)
#endif /* DEBUG */
-#define warning(msg,arg...) fprintf(stderr, "%s ", _("[Warning]")); fprintf(stderr, _(msg) "\n", ##arg)
-#define error(msg,arg...) fprintf(stderr, "%s ", _("[Error]")); fprintf(stderr, _(msg) "\n", ##arg)
-#define fatal(msg,arg...) \
-{ \
- fprintf(stderr, "%s ", _("[Fatal]")); fprintf(stderr, _(msg) "\n", ##arg); \
- abort(0); \
+#define warning(msg,arg...) fprintf(stderr, "%s ", _("[Warning]")); fprintf(stderr, _(msg), ##arg); fprintf(stderr, "\n")
+#define error(msg,arg...) fprintf(stderr, "%s ", _("[Error]")); fprintf(stderr, _(msg), ##arg); fprintf(stderr, "\n")
+#define fatal(msg,arg...) \
+{ \
+ fprintf(stderr, "%s ", _("[Fatal]")); fprintf(stderr, _(msg), ##arg); fprintf(stderr, "\n"); \
+ abort(); \
}
#endif /* MSG_H */