diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-12-24 23:28:21 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-12-24 23:28:21 +0000 |
commit | 63ca5350059d9ce3a9d6aee29cfbd3b8ad106c22 (patch) | |
tree | c486278d3c2fed9afcdacfa9dfd55e1396bda6a8 /sbin/dhclient | |
parent | a00342c7f54cb74dde29543bb05f8e9bae2f8943 (diff) |
Always use log_getverbose() instead of sometimes checking OPT_VERBOSE
flag.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index ba91792c9fb..a1ab752cb7c 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.591 2018/12/24 18:36:24 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.592 2018/12/24 23:28:20 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -969,7 +969,7 @@ bind_lease(struct interface_info *ifi) int rslt, seen; time(&cur_time); - if ((cmd_opts & OPT_VERBOSE) == 0) + if (log_getverbose() == 0) tick_msg("lease", 1, ifi->first_sending); lease = apply_defaults(ifi->offer); @@ -1362,7 +1362,7 @@ send_discover(struct interface_info *ifi) * background. */ if (cur_time < ifi->startup_time + config->link_timeout) { - if ((cmd_opts & OPT_VERBOSE) == 0) + if (log_getverbose() == 0) tick_msg("lease", 0, ifi->first_sending); ifi->interval = 1; } else { @@ -1486,7 +1486,7 @@ send_request(struct interface_info *ifi) * background. */ if (cur_time < ifi->startup_time + config->link_timeout) { - if ((cmd_opts & OPT_VERBOSE) == 0) + if (log_getverbose() == 0) tick_msg("lease", 0, ifi->first_sending); ifi->interval = 1; } else { |