diff options
-rw-r--r-- | usr.sbin/arp/arp.c | 8 |
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; |