From: Linux Karlsson Date: Sat, 21 Aug 2010 10:05:58 +0000 (+0200) Subject: Reverted sntp/log.c refactoring. X-Git-Tag: NTP_4_2_7P43~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d77b5ae72b9f0bf75acbd5a7c86f74e09fa65d43;p=thirdparty%2Fntp.git Reverted sntp/log.c refactoring. bk: 4c6fa5061cR2I-NwP7_A_2ZjUhTNaA --- diff --git a/sntp/log.c b/sntp/log.c index 15ce93e23..69d788135 100644 --- a/sntp/log.c +++ b/sntp/log.c @@ -6,7 +6,6 @@ int init = 0; int filelog = 0; FILE *log_file; -FILE **debug_log_file = &stderr; void log_msg(char *message, char type) { @@ -41,7 +40,7 @@ void debug_msg(char *message) { time_t cur_time = time(NULL); char *timestamp = ctime(&cur_time); - fprintf(*debug_log_file, "%s: %s\n", timestamp, message); + fprintf(stderr, "%s: %s\n", timestamp, message); } else { syslog(LOG_DEBUG