fix compiler warning: assignment within conditional expression

pull/1/head
Yang Tse 17 years ago
parent 2b31a21d91
commit 43a712743a
  1. 2
      ares_getopt.c

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

Loading…
Cancel
Save