From 691010efad5c05f7ee86a870abce217fe8e9b8d1 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 31 Mar 1997 05:11:47 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- usr.sbin/bootparamd/bootparamd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bootparamd') diff --git a/usr.sbin/bootparamd/bootparamd/main.c b/usr.sbin/bootparamd/bootparamd/main.c index cef4923..77bb76d 100644 --- a/usr.sbin/bootparamd/bootparamd/main.c +++ b/usr.sbin/bootparamd/bootparamd/main.c @@ -6,7 +6,7 @@ use and modify. Please send modifications and/or suggestions + bug fixes to Klas Heggemann - $Id$ + $Id: main.c,v 1.5 1997/02/22 16:04:24 peter Exp $ */ @@ -49,7 +49,7 @@ char **argv; if ( progname ) progname++; else progname = argv[0]; - while ((c = getopt(argc, argv,"dsr:f:")) != EOF) + while ((c = getopt(argc, argv,"dsr:f:")) != -1) switch (c) { case 'd': debug = 1; -- cgit v1.1