summaryrefslogtreecommitdiff
path: root/src/ln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ln.c')
-rw-r--r--src/ln.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ln.c b/src/ln.c
index 62b4e8ef6..cdf8e8b0a 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -371,9 +371,8 @@ main (int argc, char **argv)
= hard_dir_link = 0;
errors = 0;
- while ((c = getopt_long (argc, argv,
- "bdfinsvFS:V:", long_options, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "bdfinsvFS:V:", long_options, NULL))
+ != -1)
{
switch (c)
{