diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-22 19:56:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-22 19:56:10 +0100 |
| commit | 5d8bffdc9109b04e64477f6cd774dfc234ffb037 (patch) | |
| tree | f4ac08889113e62f4f754c3fc837ac1a910e5af9 /applications/common | |
| parent | c7b6789d018a5b656f727404c5fa5be386e19b3d (diff) | |
cast fix.
Diffstat (limited to 'applications/common')
| -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; |
