diff options
author | 2017-01-09 14:49:21 +0000 | |
---|---|---|
committer | 2017-01-09 14:49:21 +0000 | |
commit | 871fc12c557cf094bf5ca1277faefd10ad038938 (patch) | |
tree | 9d48cbb6bdcc53c3019df0c2ffb62d382acc929b /usr.sbin/switchd/proc.c | |
parent | pf_purge_thread() needs the NET_LOCK(). (diff) | |
download | wireguard-openbsd-871fc12c557cf094bf5ca1277faefd10ad038938.tar.xz wireguard-openbsd-871fc12c557cf094bf5ca1277faefd10ad038938.zip |
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 'usr.sbin/switchd/proc.c')
-rw-r--r-- | usr.sbin/switchd/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/proc.c b/usr.sbin/switchd/proc.c index 7ad9bf33424..4f36a83cd42 100644 --- a/usr.sbin/switchd/proc.c +++ b/usr.sbin/switchd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.9 2016/11/16 15:32:42 rzalamena Exp $ */ +/* $OpenBSD: proc.c,v 1.10 2017/01/09 14:49:22 reyk Exp $ */ /* * Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org> @@ -662,7 +662,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; case IMSG_CTL_PROCFD: IMSG_SIZE_CHECK(&imsg, &pf); |