diff options
author | Linus Nordberg <linus@nordu.net> | 2011-12-12 14:07:26 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-12-12 14:07:26 +0100 |
commit | 45a09445c0c27bded928b45dcb7d909ccaebd1ab (patch) | |
tree | dd9f2753dc4d0f61aa53f72bba7865b3bfd1aafa /debug.c | |
parent | 0634ddfa95c76b9784fece491beba734954eeb7f (diff) |
Rename DEBUG_LOG and FTICKS_LOG.
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -80,7 +80,7 @@ int debug_set_destination(char *dest, int log_type) { int i; if (!strncasecmp(dest, "file:///", 8)) { - if (log_type != FTICKS_LOG) { + if (log_type != LOG_TYPE_FTICKS) { debug_filepath = stringcopy(dest + 7, 0); debug_file = fopen(debug_filepath, "a"); if (!debug_file) { @@ -95,7 +95,7 @@ int debug_set_destination(char *dest, int log_type) { } return 1; } - if (!strncasecmp(dest, "x-syslog://", 11) || log_type == FTICKS_LOG) { + if (!strncasecmp(dest, "x-syslog://", 11) || log_type == LOG_TYPE_FTICKS) { if (!strncasecmp(dest, "x-syslog://", 11)) { dest += 11; if (*dest == '/') @@ -107,14 +107,14 @@ int debug_set_destination(char *dest, int log_type) { break; if (!facstrings[i]) debugx(1, DBG_ERR, "Unknown syslog facility %s", dest); - if (log_type != FTICKS_LOG) + if (log_type != LOG_TYPE_FTICKS) debug_syslogfacility = facvals[i]; #if defined(WANT_FTICKS) - else if (log_type == FTICKS_LOG) + else if (log_type == LOG_TYPE_FTICKS) fticks_syslogfacility = facvals[i]; #endif } else { - if (log_type != FTICKS_LOG) + if (log_type != LOG_TYPE_FTICKS) debug_syslogfacility = LOG_DAEMON; #if defined(WANT_FTICKS) else if (log_type == FTICKS_LOG) |