From: Yang Tse Date: Mon, 3 Jul 2006 18:38:03 +0000 (+0000) Subject: Fix compiler warning. X-Git-Tag: curl-7_15_5~153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43369b8096d14950f73a92126c4c5ba0bac4cd4a;p=thirdparty%2Fcurl.git Fix compiler warning. --- diff --git a/lib/hostip.h b/lib/hostip.h index 7053434ba5..3b8f8ce155 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -196,9 +196,11 @@ int curl_dogetaddrinfo(char *hostname, char *service, struct addrinfo *hints, struct addrinfo **result, int line, const char *source); -int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen, - char *host, size_t hostlen, - char *serv, size_t servlen, int flags, +int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, + GETNAMEINFO_TYPE_ARG2 salen, + char *host, GETNAMEINFO_TYPE_ARG46 hostlen, + char *serv, GETNAMEINFO_TYPE_ARG46 servlen, + GETNAMEINFO_TYPE_ARG7 flags, int line, const char *source); #endif diff --git a/lib/hostip6.c b/lib/hostip6.c index 07bb37ae03..b17bce9be6 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -136,9 +136,11 @@ int curl_dogetaddrinfo(char *hostname, char *service, return res; } -int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen, - char *host, size_t hostlen, - char *serv, size_t servlen, int flags, +int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, + GETNAMEINFO_TYPE_ARG2 salen, + char *host, GETNAMEINFO_TYPE_ARG46 hostlen, + char *serv, GETNAMEINFO_TYPE_ARG46 servlen, + GETNAMEINFO_TYPE_ARG7 flags, int line, const char *source) { int res = (getnameinfo)(sa, salen,