mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.
This commit is contained in:
1 parent
4fa016cbc9
commit
b78d6f6d92
1 file changed
+2
-2
+2
-2
@@ -18,6 +18,7 @@
|
||||
/* Written by Roland McGrath. */
|
||||
|
||||
#include <config.h>
|
||||
#include <getopt.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -75,8 +76,7 @@ main (int argc, char **argv)
|
||||
|
||||
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
|
||||
usage, AUTHORS, (char const *) NULL);
|
||||
|
||||
if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
|
||||
if (getopt (argc, argv, "+") != -1)
|
||||
usage (EXIT_FAIL);
|
||||
|
||||
if (argc <= optind)
|
||||
|
||||
Reference in new issue
Block a user