summaryrefslogtreecommitdiff
path: root/src/cksum.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-21 22:07:51 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-21 22:07:51 +0000
commit3456364b8c7674b27abbc2afdfdcf533084d3499 (patch)
tree741bc774e7fee730b4619609a01df61e82cbb262 /src/cksum.c
parentaa1ed281856ed207f1fc1f8a60ffcf32330c8fc2 (diff)
downloadcoreutils-3456364b8c7674b27abbc2afdfdcf533084d3499.tar.gz
coreutils-3456364b8c7674b27abbc2afdfdcf533084d3499.tar.bz2
coreutils-3456364b8c7674b27abbc2afdfdcf533084d3499.zip
(main): Use getopt where it suffices, not getopt_long.
Diffstat (limited to 'src/cksum.c')
-rw-r--r--src/cksum.c5
1 files changed, 2 insertions, 3 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