aboutsummaryrefslogtreecommitdiff
path: root/libexec/rbootd
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-28 15:48:21 +0000
commit91477cc4d7fe265d722af24b978c1e6147178301 (patch)
tree8a411abbd72d727a49138925e161f1519e274a41 /libexec/rbootd
parent93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6 (diff)
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
svn path=/head/; revision=24349
Diffstat (limited to 'libexec/rbootd')
-rw-r--r--libexec/rbootd/rbootd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rbootd/rbootd.c b/libexec/rbootd/rbootd.c
index c889d921d488..ad3b44abbfd5 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++;