mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
cast the call to Curl_inet_ntop for DECC compiler squawk
This commit is contained in:
parent
b9f1d43921
commit
37a547842b
@ -110,7 +110,7 @@ char *Curl_if2ip(const char *interface, char *buf, int buf_size)
|
|||||||
|
|
||||||
struct sockaddr_in *s = (struct sockaddr_in *)&req.ifr_dstaddr;
|
struct sockaddr_in *s = (struct sockaddr_in *)&req.ifr_dstaddr;
|
||||||
memcpy(&in, &(s->sin_addr.s_addr), sizeof(in));
|
memcpy(&in, &(s->sin_addr.s_addr), sizeof(in));
|
||||||
ip = Curl_inet_ntop(s->sin_family, &in, buf, buf_size);
|
ip = (char *) Curl_inet_ntop(s->sin_family, &in, buf, buf_size);
|
||||||
}
|
}
|
||||||
sclose(dummy);
|
sclose(dummy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user