Explicit cast to avoid warning

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@82 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2009-02-19 07:14:50 +00:00
parent 4fbf485208
commit 6e9f2c7f94

View File

@@ -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.