summaryrefslogtreecommitdiff
path: root/src/chgrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chgrp.c')
-rw-r--r--src/chgrp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 97374ceea..40a1dc14b 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -306,8 +306,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)
{