diff --git a/Tools/Utils/getopt.c b/Tools/Utils/getopt.c index 182062c4ab77e20d63507ceb54fbb885d351a69f..ea29020de330ad33958cde1ada18aeb22b16905e 100644 --- a/Tools/Utils/getopt.c +++ b/Tools/Utils/getopt.c @@ -74,7 +74,7 @@ getopt(int nargc, char * const *nargv, const char *ostr) } } /* option letter okay? */ if ((optopt = (int)*place++) == (int)':' || - !(oli = strchr(ostr, optopt))) { + !(oli = (char *)strchr(ostr, optopt))) { /* * if the user didn't specify '-' as an option, * assume it means -1.