summaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-15 23:44:39 +0000
commit552d265b6ced1e56d31f20f16a7fe9ae818d568b (patch)
tree219a59b7e7a5ef53ddfc66cdc38e73e3f79258c8 /bin/pwd
parentbf6413046b73005ecca3f5352c8711d00a6d00b9 (diff)
getopt(3) returns -1 when out of args, not EOF, whee!
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/pwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index 25caf23be98..3de15a81e2f 100644
--- a/bin/pwd/pwd.c
+++ b/bin/pwd/pwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd.c,v 1.4 1996/12/14 12:18:12 mickey Exp $ */
+/* $OpenBSD: pwd.c,v 1.5 1997/01/15 23:40:24 millert Exp $ */
/* $NetBSD: pwd.c,v 1.7 1995/03/21 09:08:18 cgd Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94";
#else
-static char rcsid[] = "$OpenBSD: pwd.c,v 1.4 1996/12/14 12:18:12 mickey Exp $";
+static char rcsid[] = "$OpenBSD: pwd.c,v 1.5 1997/01/15 23:40:24 millert Exp $";
#endif
#endif /* not lint */
@@ -70,7 +70,7 @@ main(argc, argv)
* there's no way to display a logical path after forking. We don't
* document either flag, only adding -P for future portability.
*/
- while ((ch = getopt(argc, argv, "P")) != EOF)
+ while ((ch = getopt(argc, argv, "P")) != -1)
switch (ch) {
case 'P':
break;