diff options
author | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-28 15:48:21 +0000 |
commit | 3125d931c2865b48cb5780a22e277701803212c6 (patch) | |
tree | 5fe9e887ce5fdacb7324ecf172d3dc7bbd561532 /libexec/rbootd | |
parent | 054f35c2222ef251bc2877814cf7bf5ff6038166 (diff) | |
download | FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.zip FreeBSD-src-3125d931c2865b48cb5780a22e277701803212c6.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'libexec/rbootd')
-rw-r--r-- | libexec/rbootd/rbootd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++; |