summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjung <jung@openbsd.org>2016-01-01 12:50:54 +0000
committerjung <jung@openbsd.org>2016-01-01 12:50:54 +0000
commit98eaebb03791b4d7e4e94c9596dc898feba04683 (patch)
tree4f4fa88a0d28f31c56d19d320df81bc46d932542
parentadd grp.h for setgroups, not necessarily required on OpenBSD but reduces diff (diff)
downloadwireguard-openbsd-98eaebb03791b4d7e4e94c9596dc898feba04683.tar.xz
wireguard-openbsd-98eaebb03791b4d7e4e94c9596dc898feba04683.zip
rmeove unused noprint variable
from Fabian Raetz via tech@ ok krw
-rw-r--r--sbin/ifconfig/ifconfig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 1b70921656a..103a57b4942 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.311 2015/12/10 17:26:59 mmcc Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.312 2016/01/01 12:50:54 jung Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -606,7 +606,6 @@ main(int argc, char *argv[])
int Cflag = 0;
int gflag = 0;
int i;
- int noprint = 0;
/* If no args at all, print all interfaces. */
if (argc < 2) {
@@ -762,7 +761,7 @@ nextarg:
argc--, argv++;
}
- if (argc == 0 && actions == 0 && !noprint) {
+ if (argc == 0 && actions == 0) {
printif(ifr.ifr_name, aflag ? ifaliases : 1);
exit(0);
}