diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-23 17:19:25 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-05-23 17:19:25 +0000 |
commit | 5d08734a5b3d621dfd1d78fa4e113f91bde28818 (patch) | |
tree | 52aa3b410719e56423a92a9ab98f8a11e62df786 /bin/pax/options.c | |
parent | c392499dddf5d594aff961f2059d4c3d007889bf (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'bin/pax/options.c')
-rw-r--r-- | bin/pax/options.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index d06eb3feab1..bc097b1b556 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.36 1999/04/29 12:59:03 aaron Exp $ */ +/* $OpenBSD: options.c,v 1.37 1999/05/23 17:19:22 aaron Exp $ */ /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.36 1999/04/29 12:59:03 aaron Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.37 1999/05/23 17:19:22 aaron Exp $"; #endif #endif /* not lint */ @@ -205,7 +205,7 @@ pax_options(argc, argv) * process option flags */ while ((c=getopt(argc,argv,"ab:cdf:iklno:p:rs:tuvwx:zB:DE:G:HLPT:U:XYZ")) - != EOF) { + != -1) { switch (c) { case 'a': /* @@ -614,7 +614,7 @@ tar_options(argc, argv) */ while ((c = getoldopt(argc, argv, "b:cef:hmopruts:vwxzBC:HLOPXZ014578")) - != EOF) { + != -1) { switch(c) { case 'b': /* @@ -938,7 +938,7 @@ cpio_options(argc, argv) dflag = 1; act = -1; nodirs = 1; - while ((c=getopt(argc,argv,"abcdfiklmoprstuvzABC:E:F:H:I:LO:SZ6")) != EOF) + while ((c=getopt(argc,argv,"abcdfiklmoprstuvzABC:E:F:H:I:LO:SZ6")) != -1) switch (c) { case 'a': /* |