summaryrefslogtreecommitdiff
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r--usr.sbin/arp/arp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 65e41ebce62..a246071db14 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.40 2007/08/24 13:12:16 claudio Exp $ */
+/* $OpenBSD: arp.c,v 1.41 2008/02/07 15:57:07 thib Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -134,6 +134,9 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
+ if (argc == 0)
+ aflag = nflag = 1;
+
if (!func)
func = F_GET;
rtn = 0;