mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fix compiler warning.
This commit is contained in:
parent
bec1977137
commit
43369b8096
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user