summaryrefslogtreecommitdiff
path: root/src/chroot.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-21 22:04:31 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-21 22:04:31 +0000
commitb78d6f6d9224713f2003f39aaf640743408bcaae (patch)
tree9a7a3f35163687b95197efa5cdfc50a9383615b7 /src/chroot.c
parent4fa016cbc9907ef9da5272c5dcfa76f8ade216f1 (diff)
downloadcoreutils-b78d6f6d9224713f2003f39aaf640743408bcaae.tar.xz
Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.
Diffstat (limited to 'src/chroot.c')
-rw-r--r--src/chroot.c4
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)