Skip to content
Snippets Groups Projects
Commit 947f9dee authored by Yang Tse's avatar Yang Tse
Browse files

Fix compiler warning

parent ce95eee9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment