diff options
author | imp <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
commit | 691010efad5c05f7ee86a870abce217fe8e9b8d1 (patch) | |
tree | b28e04577780319990238a98e7549582e44d9d51 /usr.sbin/ypserv/yp_main.c | |
parent | 3d7b78ed8c2fd06816b04ddcb57d58281409aa62 (diff) | |
download | FreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.zip FreeBSD-src-691010efad5c05f7ee86a870abce217fe8e9b8d1.tar.gz |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'usr.sbin/ypserv/yp_main.c')
-rw-r--r-- | usr.sbin/ypserv/yp_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/yp_main.c b/usr.sbin/ypserv/yp_main.c index 2013396..1ec048f 100644 --- a/usr.sbin/ypserv/yp_main.c +++ b/usr.sbin/ypserv/yp_main.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: yp_main.c,v 1.14 1997/02/22 16:15:12 peter Exp $ */ /* @@ -66,7 +66,7 @@ #define _RPCSVC_CLOSEDOWN 120 #ifndef lint -static const char rcsid[] = "$Id$"; +static const char rcsid[] = "$Id: yp_main.c,v 1.14 1997/02/22 16:15:12 peter Exp $"; #endif /* not lint */ int _rpcpmstart; /* Started by a port monitor ? */ static int _rpcfdtype; @@ -224,7 +224,7 @@ main(argc, argv) int asize = sizeof (saddr); int ch; - while ((ch = getopt(argc, argv, "hdnp:")) != EOF) { + while ((ch = getopt(argc, argv, "hdnp:")) != -1) { switch(ch) { case 'd': debug = ypdb_debug = 1; |