From d0b3d805b48cc5180d9275494e354b7ddee74cde Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 23 May 1999 23:18:38 +0000 Subject: Getopt(3) returns -1 not EOF. --- sbin/atm/fore_dnld/fore_dnld.c | 6 +++--- sbin/atm/ilmid/ilmid.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sbin/atm') diff --git a/sbin/atm/fore_dnld/fore_dnld.c b/sbin/atm/fore_dnld/fore_dnld.c index d0e965e..fa4fc1a 100644 --- a/sbin/atm/fore_dnld/fore_dnld.c +++ b/sbin/atm/fore_dnld/fore_dnld.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: fore_dnld.c,v 1.1 1998/09/15 08:22:47 phk Exp $ + * @(#) $Id: fore_dnld.c,v 1.2 1998/10/30 16:17:43 dg Exp $ * */ @@ -37,7 +37,7 @@ */ #ifndef lint -static char *RCSid = "@(#) $Id: fore_dnld.c,v 1.1 1998/09/15 08:22:47 phk Exp $"; +static char *RCSid = "@(#) $Id: fore_dnld.c,v 1.2 1998/10/30 16:17:43 dg Exp $"; #endif #include @@ -835,7 +835,7 @@ char *argv[]; progname = (char *)basename(argv[0]); comm_mode = strcmp ( progname, "fore_comm" ) == 0; - while ( ( c = getopt ( argc, argv, "i:d:f:berv" ) ) != EOF ) + while ( ( c = getopt ( argc, argv, "i:d:f:berv" ) ) != -1 ) switch ( c ) { case 'b': binary++; diff --git a/sbin/atm/ilmid/ilmid.c b/sbin/atm/ilmid/ilmid.c index 9da2424..a1c6e34 100644 --- a/sbin/atm/ilmid/ilmid.c +++ b/sbin/atm/ilmid/ilmid.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: ilmid.c,v 1.1 1998/09/15 08:22:47 phk Exp $ + * @(#) $Id: ilmid.c,v 1.2 1999/01/20 00:56:21 mks Exp $ * */ @@ -48,7 +48,7 @@ #include #ifndef lint -__RCSID("@(#) $Id: ilmid.c,v 1.1 1998/09/15 08:22:47 phk Exp $"); +__RCSID("@(#) $Id: ilmid.c,v 1.2 1999/01/20 00:56:21 mks Exp $"); #endif #include @@ -2437,7 +2437,7 @@ main ( argc, argv ) /* * Parse arguments */ - while ( ( c = getopt ( argc, argv, "d:fr" ) ) != EOF ) + while ( ( c = getopt ( argc, argv, "d:fr" ) ) != -1 ) switch ( c ) { case 'd': Debug_Level = atoi ( optarg ); -- cgit v1.1