summaryrefslogtreecommitdiff
path: root/src/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chown.c')
-rw-r--r--src/chown.c3
1 files changed, 1 insertions, 2 deletions
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)
{