summaryrefslogtreecommitdiff
path: root/ares_getopt.c
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
commit43a712743a1e8035bdd618ab77ce84ce474d8e1a (patch)
tree96a7db7af9ac5630f890bb4b35e86150df52844b /ares_getopt.c
parent2b31a21d91a60afd12b9ad69581818297f24b540 (diff)
downloadc-ares-43a712743a1e8035bdd618ab77ce84ce474d8e1a.tar.gz
c-ares-43a712743a1e8035bdd618ab77ce84ce474d8e1a.tar.bz2
c-ares-43a712743a1e8035bdd618ab77ce84ce474d8e1a.zip
fix compiler warning: assignment within conditional expression
Diffstat (limited to 'ares_getopt.c')
-rw-r--r--ares_getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_getopt.c b/ares_getopt.c
index 3b565a4..177b26f 100644
--- a/ares_getopt.c
+++ b/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.