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/switchd.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/switchd.c')
-rw-r--r-- | usr.sbin/switchd/switchd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/switchd/switchd.c b/usr.sbin/switchd/switchd.c index 64b26fbf452..5d4fde3a272 100644 --- a/usr.sbin/switchd/switchd.c +++ b/usr.sbin/switchd/switchd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: switchd.c,v 1.14 2016/10/12 19:07:42 reyk Exp $ */ +/* $OpenBSD: switchd.c,v 1.15 2017/01/09 14:49:22 reyk Exp $ */ /* * Copyright (c) 2013-2016 Reyk Floeter <reyk@openbsd.org> @@ -175,7 +175,7 @@ main(int argc, char *argv[]) fatalx("unknown user " SWITCHD_USER); log_init(debug, LOG_DAEMON); - log_verbose(verbose); + log_setverbose(verbose); /* Configure the control socket */ ps->ps_csock.cs_name = SWITCHD_SOCKET; |