summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-08-06 12:35:45 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-08-06 12:35:45 +0000
commitc567acb827a48578a4a1638a0c573ca19a00472f (patch)
treedfe126eec1b5ad125e0c13ef2edf153b02dd79da /usr.sbin/ospfd/ospfd.c
parent6a481880daca7faff75b1bca0cfb068c4927c0fb (diff)
There is no need to initialize the log framework twice. Especially because
between the two calls no logging can happen.
Diffstat (limited to 'usr.sbin/ospfd/ospfd.c')
-rw-r--r--usr.sbin/ospfd/ospfd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 76a2213c610..841892bb355 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.34 2006/07/03 13:05:02 claudio Exp $ */
+/* $OpenBSD: ospfd.c,v 1.35 2006/08/06 12:35:44 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -129,9 +129,6 @@ main(int argc, char *argv[])
conffile = CONF_FILE;
ospfd_process = PROC_MAIN;
- /* start logging */
- log_init(1);
-
while ((ch = getopt(argc, argv, "df:nv")) != -1) {
switch (ch) {
case 'd':
@@ -155,6 +152,7 @@ main(int argc, char *argv[])
}
}
+ /* start logging */
log_init(debug);
mib[0] = CTL_NET;