]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include <getopt.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Sep 2004 22:04:31 +0000 (22:04 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Sep 2004 22:04:31 +0000 (22:04 +0000)
(main): Use getopt where it suffices, not getopt_long.

src/chroot.c

index e8933ace5c6bd8787d53a4f5a9bea240499e56ce..25790081b7e8a00c32aa34c59c84a81a43feeda2 100644 (file)
@@ -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)