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/ln.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ln.c') 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) { -- cgit v1.2.3-54-g00ecf