Fix missing renaming of FTICKS_LOG. fticks_syslog2
authorLinus Nordberg <linus@nordu.net>
Mon, 12 Dec 2011 13:42:36 +0000 (14:42 +0100)
committerLinus Nordberg <linus@nordu.net>
Mon, 12 Dec 2011 13:42:36 +0000 (14:42 +0100)
Found by Maja Wolniewicz.

debug.c

diff --git a/debug.c b/debug.c
index 3b3a7fd..7596303 100644 (file)
--- a/debug.c
+++ b/debug.c
@@ -117,7 +117,7 @@ int debug_set_destination(char *dest, int log_type) {
             if (log_type != LOG_TYPE_FTICKS)
                 debug_syslogfacility = LOG_DAEMON;
 #if defined(WANT_FTICKS)
-            else if (log_type == FTICKS_LOG)
+            else if (log_type == LOG_TYPE_FTICKS)
                 fticks_syslogfacility = 0;
 #endif
        }