aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-17 02:32:55 +0000
committerYang Tse <yangsita@gmail.com>2005-12-17 02:32:55 +0000
commitb7f447f8d8e7e4bdd720c621580895e6939b3f39 (patch)
tree5cba5fef945fec9eb50ba57d7709374276b37a1f /ares
parent03af76b63180c92d4ff23031150af1b8261b48a0 (diff)
const qualifier in getnameinfo check
Diffstat (limited to 'ares')
-rw-r--r--ares/acinclude.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 8206a8832..75bf3bb07 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -229,7 +229,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
#include <netdb.h>
#endif
#endif
- extern int getnameinfo($gni_arg1, $gni_arg2,
+ extern int getnameinfo(const $gni_arg1, $gni_arg2,
char *, $gni_arg46,
char *, $gni_arg46,
$gni_arg7);
@@ -241,7 +241,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
char *serv=0;
$gni_arg46 servlen=0;
$gni_arg7 flags=0;
- getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
+ int res = getnameinfo(sa, salen, host, hostlen, serv, servlen, flags);
])
],[
curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"