From 37b915c08f74748061b9773d96f3f5af5135af6c Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 24 Jun 1999 06:43:21 +0000 Subject: Two getopts related nits: o getopt returns -1 rather than EOF on errors o getopt returns '?' for characters it doesn't know about, so don't include them in the getopt options string. --- usr.sbin/yppoll/yppoll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/yppoll') diff --git a/usr.sbin/yppoll/yppoll.c b/usr.sbin/yppoll/yppoll.c index 3f1a305..2629840 100644 --- a/usr.sbin/yppoll/yppoll.c +++ b/usr.sbin/yppoll/yppoll.c @@ -30,7 +30,7 @@ #ifndef lint static const char rcsid[] = - "$Id$"; + "$Id: yppoll.c,v 1.3 1997/10/27 12:30:30 charnier Exp $"; #endif /* not lint */ #include @@ -65,7 +65,7 @@ char **argv; yp_get_default_domain(&domainname); - while( (c=getopt(argc, argv, "h:d:?")) != -1) + while( (c=getopt(argc, argv, "h:d:")) != -1) switch(c) { case 'd': domainname = optarg; -- cgit v1.1