X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetopt1.c;h=a7472371fa20a5071ea718a55ac7444b8b0efe50;hb=d6913e92bfd13a918b19223fb676e9c0f136400e;hp=2ceff8ec8426a11911da42290ff19b068ffc8501;hpb=06ee59a585b78f1071e246c1a8c3e0d3731388b0;p=gnulib.git 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