diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
commit | 6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch) | |
tree | 9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/arp/arp.c | |
parent | 44ee97a91b095311b8703857d54df336354236a0 (diff) | |
download | src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes:
svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/arp/arp.c')
-rw-r--r-- | usr.sbin/arp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 262df2edd937..b77122cb25eb 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -42,7 +42,7 @@ static char const copyright[] = #ifndef lint static char const sccsid[] = "@(#)from: arp.c 8.2 (Berkeley) 1/2/94"; -static char const freebsdid[] = "$Id$"; +static char const freebsdid[] = "$Id: arp.c,v 1.9 1997/02/22 16:04:19 peter Exp $"; #endif /* not lint */ /* @@ -103,7 +103,7 @@ main(argc, argv) int ch; pid = getpid(); - while ((ch = getopt(argc, argv, "andfsS")) != EOF) + while ((ch = getopt(argc, argv, "andfsS")) != -1) switch((char)ch) { case 'a': dump(0); |