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/rbootd/rbootd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/rbootd') diff --git a/libexec/rbootd/rbootd.c b/libexec/rbootd/rbootd.c index c889d92..ad3b44a 100644 --- a/libexec/rbootd/rbootd.c +++ b/libexec/rbootd/rbootd.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)rbootd.c 8.2 (Berkeley) 2/22/94 - * $Id$ + * $Id: rbootd.c,v 1.5 1997/02/22 14:21:58 peter Exp $ * * Utah $Hdr: rbootd.c 3.1 92/07/06$ * Author: Jeff Forys, University of Utah CSS @@ -114,7 +114,7 @@ main(argc, argv) /* * Parse any arguments. */ - while ((c = getopt(argc, argv, "adi:")) != EOF) + while ((c = getopt(argc, argv, "adi:")) != -1) switch(c) { case 'a': BootAny++; -- cgit v1.1