diff options
Diffstat (limited to 'src/getopt.c')
-rw-r--r-- | src/getopt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/getopt.c b/src/getopt.c index 0dbe6a5..1e3c09d 100644 --- a/src/getopt.c +++ b/src/getopt.c @@ -396,17 +396,17 @@ getopt (int argc, char **argv, char *optstring) } int -getopt_long (int argc, char **argv, char *shortopts, - GETOPT_LONG_OPTION_T * longopts, int *longind) +getopt_long (int argc, char **argv, const char *shortopts, + const GETOPT_LONG_OPTION_T * longopts, int *longind) { - return getopt_internal (argc, argv, shortopts, longopts, longind, 0); + return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)longopts, longind, 0); } int -getopt_long_only (int argc, char **argv, char *shortopts, - GETOPT_LONG_OPTION_T * longopts, int *longind) +getopt_long_only (int argc, char **argv, const char *shortopts, + const GETOPT_LONG_OPTION_T * longopts, int *longind) { - return getopt_internal (argc, argv, shortopts, longopts, longind, 1); + return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)longopts, longind, 1); } /* end of file GETOPT.C */ |