summaryrefslogtreecommitdiff
path: root/lib/if2ip.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-25 09:19:59 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-25 09:19:59 +0200
commit93567071b744975e191c5732d9cbe4b0d529f4c9 (patch)
tree088bd8d157166ee1ce28397bba72b63f7d650d5d /lib/if2ip.c
parent80a87e8abc535aadf28bd154fdf5d44e61ef2080 (diff)
downloadcurl-93567071b744975e191c5732d9cbe4b0d529f4c9.tar.gz
if2ip: fix -Wcast-align warning
Follow-up to 119037325de02579f5c58256ca2ed2a0aa592c86, which fixed the warning in the HAVE_GETIFADDRS block, but not in the HAVE_IOCTL_SIOCGIFADDR block.
Diffstat (limited to 'lib/if2ip.c')
-rw-r--r--lib/if2ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if2ip.c b/lib/if2ip.c
index d876615ea..4de81be60 100644
--- a/lib/if2ip.c
+++ b/lib/if2ip.c
@@ -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);