summaryrefslogtreecommitdiff
path: root/src/cksum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cksum.c')
-rw-r--r--src/cksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cksum.c b/src/cksum.c
index 2318d5b21..c3f06eb6a 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -293,7 +293,7 @@ main (int argc, char **argv)
have_read_stdin = 0;
- while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
switch (c)
{