summaryrefslogtreecommitdiff
path: root/lib/getopt1.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-11-12 06:00:01 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-11-12 06:00:01 +0000
commit3c530e63c5977e1157fca280328d0ce48d35fc98 (patch)
treeb7eaa2b643784de7f78182950d9cde300f025e76 /lib/getopt1.c
parente5839b5b28636c0ea3a39a20a39dbb8300aec3da (diff)
downloadcoreutils-3c530e63c5977e1157fca280328d0ce48d35fc98.tar.xz
Sync from gnulib and regenerate.
Diffstat (limited to 'lib/getopt1.c')
-rw-r--r--lib/getopt1.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/getopt1.c b/lib/getopt1.c
index 706f59c08..a6fdee5a5 100644
--- a/lib/getopt1.c
+++ b/lib/getopt1.c
@@ -41,14 +41,14 @@
#endif
int
-getopt_long (int argc, char *const *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);
}
int
-_getopt_long_r (int argc, char *const *argv, const char *options,
+_getopt_long_r (int argc, char *__getopt_argv_const *argv, const char *options,
const struct option *long_options, int *opt_index,
struct _getopt_data *d)
{
@@ -62,14 +62,16 @@ _getopt_long_r (int argc, char *const *argv, const char *options,
instead. */
int
-getopt_long_only (int argc, char *const *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);
}
int
-_getopt_long_only_r (int argc, char *const *argv, const char *options,
+_getopt_long_only_r (int argc, char *__getopt_argv_const *argv,
+ const char *options,
const struct option *long_options, int *opt_index,
struct _getopt_data *d)
{