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/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ls.c') diff --git a/src/ls.c b/src/ls.c index aae67d557..e906335a0 100644 --- a/src/ls.c +++ b/src/ls.c @@ -866,7 +866,7 @@ decode_switches (int argc, char **argv) while ((c = getopt_long (argc, argv, "abcdfgiklmnopqrstuw:xABCDFGI:LNQRST:UX1", - long_options, (int *) 0)) != EOF) + long_options, NULL)) != -1) { switch (c) { -- cgit v1.2.3-54-g00ecf