From 3125d931c2865b48cb5780a22e277701803212c6 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 28 Mar 1997 15:48:21 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- libexec/ypxfr/ypxfr_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/ypxfr') diff --git a/libexec/ypxfr/ypxfr_main.c b/libexec/ypxfr/ypxfr_main.c index 63e4b49..6e42c05 100644 --- a/libexec/ypxfr/ypxfr_main.c +++ b/libexec/ypxfr/ypxfr_main.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ypxfr_main.c,v 1.8 1997/02/22 14:22:48 peter Exp $ */ #include #include @@ -51,7 +51,7 @@ struct dom_binding {}; #include "ypxfr_extern.h" #ifndef lint -static const char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: ypxfr_main.c,v 1.8 1997/02/22 14:22:48 peter Exp $"; #endif char *progname = "ypxfr"; @@ -176,7 +176,7 @@ main(argc,argv) if (argc < 2) usage(); - while ((ch = getopt(argc, argv, "fcd:h:s:p:C:")) != EOF) { + while ((ch = getopt(argc, argv, "fcd:h:s:p:C:")) != -1) { int my_optind; switch(ch) { case 'f': -- cgit v1.1