summaryrefslogtreecommitdiff
path: root/sbin/iked/proc.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/proc.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/proc.c')
-rw-r--r--sbin/iked/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/proc.c b/sbin/iked/proc.c
index d02fc88a18e..d23c0bcfc84 100644
--- a/sbin/iked/proc.c
+++ b/sbin/iked/proc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.c,v 1.29 2015/12/07 16:05:56 reyk Exp $ */
+/* $OpenBSD: proc.c,v 1.30 2017/01/09 14:49:21 reyk Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -495,7 +495,7 @@ proc_dispatch(int fd, short event, void *arg)
case IMSG_CTL_VERBOSE:
IMSG_SIZE_CHECK(&imsg, &verbose);
memcpy(&verbose, imsg.data, sizeof(verbose));
- log_verbose(verbose);
+ log_setverbose(verbose);
break;
default:
log_warnx("%s: %s %d got invalid imsg %d peerid %d "