diff --git a/ChangeLog b/ChangeLog index f5b990ce..5a5b0029 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Tatsuhiro Tsujikawa + + Fixed compiler warning when checking c-ares version. + * m4/libcares.m4 + 2010-10-27 Tatsuhiro Tsujikawa Removed unused variable r. diff --git a/configure b/configure index 26f90f6c..491e5f1e 100755 --- a/configure +++ b/configure @@ -7089,8 +7089,7 @@ int main () { - ares_channel channel; - ares_gethostbyname(channel, "foo", 0, callback, 0); + ares_gethostbyname((ares_channel)0, "foo", 0, callback, 0); ; return 0; diff --git a/m4/libcares.m4 b/m4/libcares.m4 index 6fab7eae..4273917f 100644 --- a/m4/libcares.m4 +++ b/m4/libcares.m4 @@ -34,8 +34,7 @@ if test "x$have_libcares" = "xyes"; then void callback(void* arg, int status, int timeouts, struct hostent* host); ]], [[ - ares_channel channel; - ares_gethostbyname(channel, "foo", 0, callback, 0); + ares_gethostbyname((ares_channel)0, "foo", 0, callback, 0); ]])], [have_libcares1_5=yes], [have_libcares1_5=no])