summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/log.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-06-01 20:27:25 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-06-01 20:27:25 +0000
commitdcaec64a3f2aa39e76d35a6c1f4b26ed0be356cf (patch)
tree1c9bfc5d565d98f7fefeec62f15d1abb88fdbbb6 /usr.sbin/bgpd/log.c
parent45f12b1679c3e0011954854cca529bb46c356f22 (diff)
I would have sworn I added tzset() here
Diffstat (limited to 'usr.sbin/bgpd/log.c')
-rw-r--r--usr.sbin/bgpd/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/log.c b/usr.sbin/bgpd/log.c
index 301b090c622..4f28a9b8a3c 100644
--- a/usr.sbin/bgpd/log.c
+++ b/usr.sbin/bgpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.37 2004/05/21 11:58:32 henning Exp $ */
+/* $OpenBSD: log.c,v 1.38 2004/06/01 20:27:24 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
+#include <time.h>
#include <unistd.h>
#include "bgpd.h"
@@ -77,6 +78,8 @@ log_init(int n_debug)
if (!debug)
openlog(__progname, LOG_PID | LOG_NDELAY, LOG_DAEMON);
+
+ tzset();
}
void