mirror of
https://github.com/curl/curl.git
synced 2026-07-31 17:38:03 +03:00
if2ip: fix -Wcast-align warning
Follow-up to 119037325d, which fixed the
warning in the HAVE_GETIFADDRS block, but not in the
HAVE_IOCTL_SIOCGIFADDR block.
This commit is contained in:
parent
80a87e8abc
commit
93567071b7
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
|
|||
return IF2IP_NOT_FOUND;
|
||||
}
|
||||
|
||||
s = (struct sockaddr_in *)&req.ifr_addr;
|
||||
s = (struct sockaddr_in *)(void *)&req.ifr_addr;
|
||||
memcpy(&in, &s->sin_addr, sizeof(in));
|
||||
Curl_inet_ntop(s->sin_family, &in, buf, buf_size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue