Unverified Commit 93567071 authored by Marcel Raad's avatar Marcel Raad
Browse files

if2ip: fix -Wcast-align warning

Follow-up to 11903732, which fixed the
warning in the HAVE_GETIFADDRS block, but not in the
HAVE_IOCTL_SIOCGIFADDR block.
parent 80a87e8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -239,7 +239,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int remote_scope,
    return IF2IP_NOT_FOUND;
    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));
  memcpy(&in, &s->sin_addr, sizeof(in));
  Curl_inet_ntop(s->sin_family, &in, buf, buf_size);
  Curl_inet_ntop(s->sin_family, &in, buf, buf_size);