diff options
| -rw-r--r-- | applications/common/opj_getopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/common/opj_getopt.c b/applications/common/opj_getopt.c index 252d8359..faf91aa7 100644 --- a/applications/common/opj_getopt.c +++ b/applications/common/opj_getopt.c @@ -80,7 +80,7 @@ int opj_getopt(int nargc, char *const *nargv, const char *ostr) { } } /* option letter okay? */ if ((opj_optopt = (int) *place++) == (int) ':' || - !(oli = strchr(ostr, opj_optopt))) { + !(oli = strchr((char *) ostr, opj_optopt))) { /* * if the user didn't specify '-' as an option, * assume it means -1. @@ -207,7 +207,7 @@ again: lastidx=opj_optind; lastofs=0; } opj_optopt=argv[opj_optind][lastofs+1]; - if ((tmp=strchr(optstring,opj_optopt))) {/*Found input parameter in list*/ + if ((tmp=strchr((char *) optstring,opj_optopt))) {/*Found input parameter in list*/ if (*tmp==0) { /* apparently, we looked for \0, i.e. end of argument */ ++opj_optind; goto again; |
