diff options
author | Yang Tse <yangsita@gmail.com> | 2008-04-07 12:40:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-04-07 12:40:05 +0000 |
commit | 43a712743a1e8035bdd618ab77ce84ce474d8e1a (patch) | |
tree | 96a7db7af9ac5630f890bb4b35e86150df52844b | |
parent | 2b31a21d91a60afd12b9ad69581818297f24b540 (diff) | |
download | c-ares-43a712743a1e8035bdd618ab77ce84ce474d8e1a.tar.gz c-ares-43a712743a1e8035bdd618ab77ce84ce474d8e1a.tar.bz2 c-ares-43a712743a1e8035bdd618ab77ce84ce474d8e1a.zip |
fix compiler warning: assignment within conditional expression
-rw-r--r-- | ares_getopt.c | 2 |
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. |