aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-04-07 12:40:05 +0000
committerYang Tse <yangsita@gmail.com>2008-04-07 12:40:05 +0000
commit26aeadbc3ef72cfe4a0aa88ae42091bf5a7b3099 (patch)
tree8c3747963430f2536460bcd648c99be0204281d6
parentd0a4b50e198ffdeb80c68d8ac497f50a5b5798c8 (diff)
fix compiler warning: assignment within conditional expression
-rw-r--r--ares/ares_getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_getopt.c b/ares/ares_getopt.c
index 3b565a49a..177b26fea 100644
--- a/ares/ares_getopt.c
+++ b/ares/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.