fix compiler warning: assignment within conditional expression

This commit is contained in:
Yang Tse
2008-04-07 12:40:05 +00:00
parent d0a4b50e19
commit 26aeadbc3e

View File

@@ -82,7 +82,7 @@ ares_getopt(int nargc, char * const nargv[], const char *ostr)
} }
} /* option letter okay? */ } /* option letter okay? */
if ((optopt = (int)*place++) == (int)':' || if ((optopt = (int)*place++) == (int)':' ||
!(oli = strchr(ostr, optopt))) { (oli = strchr(ostr, optopt)) == NULL) {
/* /*
* if the user didn't specify '-' as an option, * if the user didn't specify '-' as an option,
* assume it means EOF. * assume it means EOF.