|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: log.c,v 1.1 2004/05/31 13:46:16 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: log.c,v 1.2 2004/06/01 20:28:19 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -28,6 +28,7 @@ |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
#include <string.h> |
|
|
#include <string.h> |
|
|
#include <syslog.h> |
|
|
#include <syslog.h> |
|
|
|
|
|
#include <time.h> |
|
|
#include <unistd.h> |
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
|
#include "ntpd.h" |
|
|
#include "ntpd.h" |
|
@ -45,6 +46,8 @@ log_init(int n_debug) |
|
|
|
|
|
|
|
|
if (!debug) |
|
|
if (!debug) |
|
|
openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); |
|
|
openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON); |
|
|
|
|
|
|
|
|
|
|
|
tzset(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void |
|
|
void |
|
|