summaryrefslogtreecommitdiff
path: root/sbin/iked/iked.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2017-01-09 14:49:23 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2017-01-09 14:49:23 +0000
commit65cbefc932ed629628895ae2493bd64c22ef3d1e (patch)
treeea73a27d1af80c78c53341594644b4c83a054ac5 /sbin/iked/iked.c
parent086789f41ebba4437094c99922f574254973b86f (diff)
Stop accessing verbose and debug variables from log.c directly.
This replaces log_verbose() and "extern int verbose" with the two functions log_setverbose() and log_getverbose(). Pointed out by benno@ OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
Diffstat (limited to 'sbin/iked/iked.c')
-rw-r--r--sbin/iked/iked.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/iked.c b/sbin/iked/iked.c
index 8929975dfa9..246b861cc62 100644
--- a/sbin/iked/iked.c
+++ b/sbin/iked/iked.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iked.c,v 1.32 2017/01/03 17:51:38 reyk Exp $ */
+/* $OpenBSD: iked.c,v 1.33 2017/01/09 14:49:21 reyk Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
ps->ps_csock.cs_name = IKED_SOCKET;
log_init(debug, LOG_DAEMON);
- log_verbose(verbose);
+ log_setverbose(verbose);
if (!debug && daemon(0, 0) == -1)
err(1, "failed to daemonize");