artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e345d31
)
make "arp -na" and "arp -an" do the same thing; paul@wit387304.student.utwente.nl
author
deraadt
<deraadt@openbsd.org>
Mon, 3 Feb 1997 00:12:57 +0000
(
00:12
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 3 Feb 1997 00:12:57 +0000
(
00:12
+0000)
usr.sbin/arp/arp.c
patch
|
blob
|
history
diff --git
a/usr.sbin/arp/arp.c
b/usr.sbin/arp/arp.c
index
9af01e5
..
600570d
100644
(file)
--- a/
usr.sbin/arp/arp.c
+++ b/
usr.sbin/arp/arp.c
@@
-97,6
+97,12
@@
main(argc, argv)
int ch;
pid = getpid();
+ while ((ch = getopt(argc, argv, "andsf")) != -1)
+ if (ch == 'n')
+ nflag = 1;
+
+ optind = 1;
+ optreset = 1;
while ((ch = getopt(argc, argv, "andsf")) != -1)
switch((char)ch) {
case 'a':
@@
-108,7
+114,6
@@
main(argc, argv)
(void)delete(argv[2], argv[3]);
return (0);
case 'n':
- nflag = 1;
break;
case 's':
if (argc < 4 || argc > 7)