summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
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)
{