From 4f51b86bfb737aadf750d70b6a7bd4e0ec36962f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 1 Feb 1997 03:03:44 +0000 Subject: Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call. --- src/dircolors.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dircolors.c') diff --git a/src/dircolors.c b/src/dircolors.c index 2eac1920d..18fb4ee61 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -424,8 +424,7 @@ main (int argc, char **argv) parse_long_options (argc, argv, "dircolors", GNU_PACKAGE, VERSION, usage); - while ((optc = getopt_long (argc, argv, "bcp", long_options, NULL)) - != EOF) + while ((optc = getopt_long (argc, argv, "bcp", long_options, NULL)) != -1) switch (optc) { case 'b': /* Bourne shell syntax. */ -- cgit v1.2.3-54-g00ecf