diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-21 22:04:31 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-09-21 22:04:31 +0000 |
commit | b78d6f6d9224713f2003f39aaf640743408bcaae (patch) | |
tree | 9a7a3f35163687b95197efa5cdfc50a9383615b7 /src | |
parent | 4fa016cbc9907ef9da5272c5dcfa76f8ade216f1 (diff) | |
download | coreutils-b78d6f6d9224713f2003f39aaf640743408bcaae.tar.xz |
Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.
Diffstat (limited to 'src')
-rw-r--r-- | src/chroot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chroot.c b/src/chroot.c index e8933ace5..25790081b 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -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) |