summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-05-23 17:19:25 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-05-23 17:19:25 +0000
commit5d08734a5b3d621dfd1d78fa4e113f91bde28818 (patch)
tree52aa3b410719e56423a92a9ab98f8a11e62df786 /usr.bin/top/top.c
parentc392499dddf5d594aff961f2059d4c3d007889bf (diff)
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r--usr.bin/top/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index 0947e575a64..76c31480081 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.2 1997/08/22 07:16:30 downsj Exp $ */
+/* $OpenBSD: top.c,v 1.3 1999/05/23 17:19:21 aaron Exp $ */
const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre";
@@ -227,7 +227,7 @@ char *argv[];
optind = 1;
}
- while ((i = getopt(ac, av, "SIbinqus:d:U:o:")) != EOF)
+ while ((i = getopt(ac, av, "SIbinqus:d:U:o:")) != -1)
{
switch(i)
{