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/chown.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/chown.c') diff --git a/src/chown.c b/src/chown.c index bd10f7ff4..9663cd17e 100644 --- a/src/chown.c +++ b/src/chown.c @@ -272,8 +272,7 @@ main (int argc, char **argv) recurse = force_silent = verbose = changes_only = 0; - while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, (int *) 0)) - != EOF) + while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, NULL)) != -1) { switch (optc) { -- cgit v1.2.3-70-g09d2