summaryrefslogtreecommitdiffstats
path: root/macro.h
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-16 11:20:23 +0100
committerAndreas Eversberg2010-01-16 11:20:23 +0100
commitb0bd74e35e935aa976b68c594def4e8d2c22ef95 (patch)
tree7e7033beb3b9b1a1976d58ce4e16c6f965a3c9fc /macro.h
parentAdded new option to interface.conf: "nonotify" to disable notify messages. (diff)
downloadlcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.gz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.xz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.zip
Replaced polling loop for LCR and chan_lcr with select based event loop.
Now LCR and chan_lcr will not use any CPU until there is work to do.
Diffstat (limited to 'macro.h')
-rw-r--r--macro.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/macro.h b/macro.h
index 9e4bcd1..d97c41f 100644
--- a/macro.h
+++ b/macro.h
@@ -77,8 +77,8 @@ static inline void fatal(const char *function, int line, const char *fmt, ...)
fprintf(stderr, "FATAL ERROR in function %s, line %d: %s", function, line, buffer);
fprintf(stderr, "This error is not recoverable, must exit here.\n");
#ifdef DEBUG_FUNC
- debug(function, line, "FATAL ERROR", buffer);
- debug(function, line, "FATAL ERROR", (char *)"This error is not recoverable, must exit here.\n");
+ debug(function, line, "FATAL", buffer);
+ debug(function, line, "FATAL", (char *)"This error is not recoverable, must exit here.\n");
#endif
exit(EXIT_FAILURE);
}