diff options
author | imp <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
commit | 691010efad5c05f7ee86a870abce217fe8e9b8d1 (patch) | |
tree | b28e04577780319990238a98e7549582e44d9d51 /usr.sbin/tcpdump | |
parent | 3d7b78ed8c2fd06816b04ddcb57d58281409aa62 (diff) | |
download | FreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.zip FreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r-- | usr.sbin/tcpdump/tcpslice/tcpslice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/tcpslice/tcpslice.c b/usr.sbin/tcpdump/tcpslice/tcpslice.c index 2c807f6..d0abf26 100644 --- a/usr.sbin/tcpdump/tcpslice/tcpslice.c +++ b/usr.sbin/tcpdump/tcpslice/tcpslice.c @@ -22,7 +22,7 @@ char copyright[] = "@(#) Copyright (c) 1987-1990 The Regents of the University of California.\nAll rights reserved.\n"; static char rcsid[] = - "@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/tcpslice.c,v 1.2 1995/03/08 12:53:40 olah Exp $ (LBL)"; + "@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/tcpslice.c,v 1.3 1995/08/23 05:18:59 pst Exp $ (LBL)"; #endif /* @@ -81,7 +81,7 @@ main(int argc, char **argv) program_name = argv[0]; opterr = 0; - while ((op = getopt(argc, argv, "dRrtw:")) != EOF) + while ((op = getopt(argc, argv, "dRrtw:")) != -1) switch (op) { case 'd': |