From 054f35c2222ef251bc2877814cf7bf5ff6038166 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 28 Mar 1997 15:24:41 +0000 Subject: compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic. --- bin/chmod/chmod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/chmod') diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c index 2004a51..6d61ca4 100644 --- a/bin/chmod/chmod.c +++ b/bin/chmod/chmod.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: chmod.c,v 1.8 1997/02/22 14:01:30 peter Exp $ */ #ifndef lint @@ -73,7 +73,7 @@ main(argc, argv) set = NULL; omode = 0; Hflag = Lflag = Pflag = Rflag = fflag = hflag = 0; - while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != EOF) + while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != -1) switch (ch) { case 'H': Hflag = 1; -- cgit v1.1