summaryrefslogtreecommitdiffstats
path: root/bin/pax/options.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-28 15:24:41 +0000
committerimp <imp@FreeBSD.org>1997-03-28 15:24:41 +0000
commit054f35c2222ef251bc2877814cf7bf5ff6038166 (patch)
treebf569c1217b3803ad2d64ba6083e1610213c7ece /bin/pax/options.c
parent3ad19c4ae3d0f156867d86a310e2d6d0f40a7a51 (diff)
downloadFreeBSD-src-054f35c2222ef251bc2877814cf7bf5ff6038166.zip
FreeBSD-src-054f35c2222ef251bc2877814cf7bf5ff6038166.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'bin/pax/options.c')
-rw-r--r--bin/pax/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c
index 4edd43f..3e0efa4 100644
--- a/bin/pax/options.c
+++ b/bin/pax/options.c
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: options.c,v 1.7 1997/02/22 14:04:33 peter Exp $
*/
#ifndef lint
@@ -195,7 +195,7 @@ pax_options(argc, argv)
* process option flags
*/
while ((c=getopt(argc,argv,"ab:cdf:iklno:p:rs:tuvwx:B:DE:G:HLPT:U:XYZ"))
- != EOF) {
+ != -1) {
switch (c) {
case 'a':
/*
OpenPOWER on IntegriCloud