diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-15 23:44:39 +0000 |
commit | 552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch) | |
tree | 219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /usr.sbin/grfinfo/grfinfo.c | |
parent | bf6413046b73005ecca3f5352c8711d00a6d00b9 (diff) |
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'usr.sbin/grfinfo/grfinfo.c')
-rw-r--r-- | usr.sbin/grfinfo/grfinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/grfinfo/grfinfo.c b/usr.sbin/grfinfo/grfinfo.c index e051d4c43be..9ab8bbc9c80 100644 --- a/usr.sbin/grfinfo/grfinfo.c +++ b/usr.sbin/grfinfo/grfinfo.c @@ -19,7 +19,7 @@ * improvements that they make and grant CSS redistribution rights. * * from: Utah $Hdr: grfinfo.c 1.3 94/04/04$ - * $Id: grfinfo.c,v 1.1 1995/10/18 08:47:34 deraadt Exp $ + * $Id: grfinfo.c,v 1.2 1997/01/15 23:43:56 millert Exp $ */ #include <stdio.h> @@ -52,7 +52,7 @@ main(argc, argv) register int c; pname = argv[0]; - while ((c = getopt(argc, argv, "at")) != EOF) + while ((c = getopt(argc, argv, "at")) != -1) switch (c) { /* everything */ case 'a': |