summaryrefslogtreecommitdiff
path: root/lib/getopt1.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-11-17 01:59:29 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-11-17 01:59:29 +0000
commit99e10817b057cb44bb62ad18c78d0b009d208984 (patch)
treec206f7ba309acbb27a11d93fa05374a49ecfc586 /lib/getopt1.c
parentb209e757d82b173a220033b3e3ec6b0e043c83c7 (diff)
downloadcoreutils-99e10817b057cb44bb62ad18c78d0b009d208984.tar.xz
Merge from gnulib.
Diffstat (limited to 'lib/getopt1.c')
-rw-r--r--lib/getopt1.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/getopt1.c b/lib/getopt1.c
index 2ceff8ec8..a7472371f 100644
--- a/lib/getopt1.c
+++ b/lib/getopt1.c
@@ -41,10 +41,11 @@
#endif
int
-getopt_long (int argc, char **argv, const char *options,
+getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
const struct option *long_options, int *opt_index)
{
- return _getopt_internal (argc, argv, options, long_options, opt_index, 0, 0);
+ return _getopt_internal (argc, (char **) argv, options, long_options,
+ opt_index, 0, 0);
}
int
@@ -62,10 +63,12 @@ _getopt_long_r (int argc, char **argv, const char *options,
instead. */
int
-getopt_long_only (int argc, char **argv, const char *options,
+getopt_long_only (int argc, char *__getopt_argv_const *argv,
+ const char *options,
const struct option *long_options, int *opt_index)
{
- return _getopt_internal (argc, argv, options, long_options, opt_index, 1, 0);
+ return _getopt_internal (argc, (char **) argv, options, long_options,
+ opt_index, 1, 0);
}
int