summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-01 03:03:44 +0000
committerJim Meyering <jim@meyering.net>1997-02-01 03:03:44 +0000
commit4f51b86bfb737aadf750d70b6a7bd4e0ec36962f (patch)
tree0be3383f62cf71924751407a7bbf4bea5733ab22 /src/ls.c
parentc2d2dec516bd776d6acba7637d2e9ee721394604 (diff)
downloadcoreutils-4f51b86bfb737aadf750d70b6a7bd4e0ec36962f.tar.xz
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
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)
{