diff --git a/ketopt.h b/ketopt.h index 11638db..70193a5 100644 --- a/ketopt.h +++ b/ketopt.h @@ -92,7 +92,7 @@ static int ketopt(ketopt_t *s, int argc, char *argv[], int permute, const char * char *p; if (s->pos == 0) s->pos = 1; opt = s->opt = argv[s->i][s->pos++]; - p = strchr(ostr, opt); + p = strchr((char*)ostr, opt); if (p == 0) { opt = '?'; /* unknown option */ } else if (p[1] == ':') { diff --git a/main.c b/main.c index 504c252..7a42685 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ #include "mmpriv.h" #include "ketopt.h" -#define MM_VERSION "2.14-r883" +#define MM_VERSION "2.14-r884" #ifdef __linux__ #include