summaryrefslogtreecommitdiff
path: root/usr.sbin/arp/arp.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-09-29 02:22:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-09-29 02:22:15 +0000
commit8aa3727a11a2870dbcc1914a494f8e74e1d2293a (patch)
tree715d51ed166209ed95f33358cb681ce5b4fc453f /usr.sbin/arp/arp.c
parentb99c022ac52cacfe900228889fabc33a251894dd (diff)
only spew 'illegal option' once if they give an unsupported optino
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r--usr.sbin/arp/arp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c
index 70d9306151d..1f8afd70745 100644
--- a/usr.sbin/arp/arp.c
+++ b/usr.sbin/arp/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.12 1998/05/14 21:16:42 deraadt Exp $ */
+/* $OpenBSD: arp.c,v 1.13 1998/09/29 02:22:14 millert Exp $ */
/* $NetBSD: arp.c,v 1.12 1995/04/24 13:25:18 cgd Exp $ */
/*
@@ -98,12 +98,14 @@ main(argc, argv)
int ch;
pid = getpid();
+ opterr = 0;
while ((ch = getopt(argc, argv, "andsf")) != -1)
if (ch == 'n')
nflag = 1;
optind = 1;
optreset = 1;
+ opterr = 1;
while ((ch = getopt(argc, argv, "andsf")) != -1)
switch((char)ch) {
case 'a':