X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=debug.c;h=4f6f59ef0a153ff6a7df5c2fd804c499d2ebaec4;hb=refs%2Fheads%2Fmaint-1.6;hp=2ec8ef3b78e7648e4b72121e944677823e3846f3;hpb=000cfa8160cf40bdf8f4c936715dcaeaf3360dc2;p=radsecproxy.git diff --git a/debug.c b/debug.c index 2ec8ef3..4f6f59e 100644 --- a/debug.c +++ b/debug.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2007 Stig Venaas - * Copyright (C) 2010 NORDUnet A/S + * Copyright (C) 2010,2011 NORDUnet A/S * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -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,17 +107,17 @@ 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) + else if (log_type == LOG_TYPE_FTICKS) fticks_syslogfacility = 0; #endif }