Mercurial > hg > octave-lojdl > gnulib-hg
changeset 5455:4e3460b787b0
(getopt_long, getopt_long_only): Arg is char * const *
when compiling for libc.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 17 Nov 2004 01:52:50 +0000 |
parents | d809d8b12ac5 |
children | 1f3308a7317d |
files | lib/getopt1.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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