aboutsummaryrefslogtreecommitdiff
path: root/libexec/revnetgroup
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/revnetgroup
parent93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6 (diff)
downloadsrc-91477cc4d7fe265d722af24b978c1e6147178301.tar.gz
src-91477cc4d7fe265d722af24b978c1e6147178301.zip
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes: svn path=/head/; revision=24349
Diffstat (limited to 'libexec/revnetgroup')
-rw-r--r--libexec/revnetgroup/revnetgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/revnetgroup/revnetgroup.c b/libexec/revnetgroup/revnetgroup.c
index c2a3574884e6..765548077eb3 100644
--- a/libexec/revnetgroup/revnetgroup.c
+++ b/libexec/revnetgroup/revnetgroup.c
@@ -35,7 +35,7 @@
* Center for Telecommunications Research
* Columbia University, New York City
*
- * $Id$
+ * $Id: revnetgroup.c,v 1.6 1997/02/22 14:22:03 peter Exp $
*/
#include <stdio.h>
@@ -46,7 +46,7 @@
#include "hash.h"
#ifndef lint
-static const char rcsid[] = "$Id$";
+static const char rcsid[] = "$Id: revnetgroup.c,v 1.6 1997/02/22 14:22:03 peter Exp $";
#endif
/* Default location of netgroup file. */
@@ -87,7 +87,7 @@ main(argc, argv)
if (argc < 2)
usage(argv[0]);
- while ((ch = getopt(argc, argv, "uhf:")) != EOF) {
+ while ((ch = getopt(argc, argv, "uhf:")) != -1) {
switch(ch) {
case 'u':
if (hosts != -1) {