summaryrefslogtreecommitdiff
path: root/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-07-22 03:35:17 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-07-22 03:35:17 +0000
commit4b3aabebd29a9d0b2b9fea0c76a18a4317c8d4de (patch)
tree11d64413c4c1f9ca4c146b022ba715cd94de1b5a /codec
parent1093244d43ea7d329a5d2903516141b0bae9b6e3 (diff)
ENH: Fix warning about assignment discards qualifiers from pointer target type
Diffstat (limited to 'codec')
-rw-r--r--codec/compat/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/codec/compat/getopt.c b/codec/compat/getopt.c
index 53d8329b..ffc921bd 100644
--- a/codec/compat/getopt.c
+++ b/codec/compat/getopt.c
@@ -45,7 +45,7 @@ int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */
optopt, /* character checked for validity */
optreset; /* reset getopt */
-char *optarg; /* argument associated with option */
+const char *optarg; /* argument associated with option */
#define BADCH (int)'?'
#define BADARG (int)':'
@@ -57,7 +57,7 @@ char *optarg; /* argument associated with option */
*/
int getopt(int nargc, char *const *nargv, const char *ostr) {
# define __progname nargv[0]
- static char *place = EMSG; /* option letter processing */
+ static const char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */
if (optreset || !*place) { /* update scanning pointer */