summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index e101b9033..114b27dbe 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -269,7 +269,7 @@ main (int argc, char **argv)
print_lines = print_words = print_chars = 0;
total_lines = total_words = total_chars = 0;
- while ((optc = getopt_long (argc, argv, "clw", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "clw", longopts, NULL)) != -1)
switch (optc)
{
case 0: