summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cksum.c5
-rw-r--r--src/dd.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/cksum.c b/src/cksum.c
index d4fdd2a3e..6cf47619d 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -298,12 +298,11 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
+ if (getopt (argc, argv, "") != -1)
+ usage (EXIT_FAILURE);
have_read_stdin = false;
- if (getopt_long (argc, argv, "", NULL, NULL) != -1)
- usage (EXIT_FAILURE);
-
if (optind == argc)
ok = cksum ("-", false);
else
diff --git a/src/dd.c b/src/dd.c
index 4cbb58d98..879a88e33 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1360,7 +1360,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt_long (argc, argv, "", NULL, NULL) != -1)
+ if (getopt (argc, argv, "") != -1)
usage (EXIT_FAILURE);
/* Don't close stdout on exit from here on. */