mirror of
https://github.com/curl/curl.git
synced 2026-08-07 20:22:54 +03:00
Fix compiler warning
This commit is contained in:
parent
ce95eee903
commit
947f9deed5
1 changed files with 3 additions and 1 deletions
|
|
@ -143,7 +143,9 @@ int curl_dogetnameinfo(const struct sockaddr *sa, socklen_t salen,
|
|||
char *serv, size_t servlen, int flags,
|
||||
int line, const char *source)
|
||||
{
|
||||
int res=(getnameinfo)(sa, salen, host, hostlen, serv, servlen, flags);
|
||||
int res = (getnameinfo)(sa, (size_t)salen,
|
||||
host, hostlen, serv, servlen,
|
||||
(unsigned int)flags);
|
||||
if(0 == res) {
|
||||
/* success */
|
||||
if(logfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue