summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-07 16:53:59 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-07 16:53:59 +0000
commit9c606e0811232756b3c9a0307da2949105a894de (patch)
tree5aa44159ff41c8337446aee8c38fef2d0beb6fa0
parentdf2896e958486f28e2e5bdc8bada84295c403d29 (diff)
Oops. Better diff to enable -an by default without breaking
the other options too badly; ok millert@
-rw-r--r--usr.sbin/arp/arp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index a246071db14..86b5d0e59d3 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.41 2008/02/07 15:57:07 thib Exp $ */
+/* $OpenBSD: arp.c,v 1.42 2008/02/07 16:53:58 thib Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -131,12 +131,12 @@ main(int argc, char *argv[])
break;
}
}
+ if (argc == 1)
+ aflag = nflag = 1;
+
argc -= optind;
argv += optind;
- if (argc == 0)
- aflag = nflag = 1;
-
if (!func)
func = F_GET;
rtn = 0;