diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2012-06-11 12:24:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-06-11 15:26:30 +0200 |
commit | 9c94236e6cc078a0dc5a78b6e2fefc1403e5375e (patch) | |
tree | 15c4542b712a0ac9a000a86c6322cdf3a6575b16 /lib/curl_md4.h | |
parent | 3f9ab7cf5deb892cc7b8cb3f36322e072898b789 (diff) |
connect.c/ftp.c: Fixed dereferencing pointer breakin strict-aliasing
Fixed warning: dereferencing pointer does break strict-aliasing rules
by using a union instead of separate pointer variables.
Internal union sockaddr_u could probably be moved to generic header.
Thanks to Paul Howarth for the hint about using unions for this.
Important for winbuild: Separate declaration of sockaddr_u pointer.
The pointer variable *sock cannot be declared and initialized right
after the union declaration. Therefore it has to be a separate statement.
Diffstat (limited to 'lib/curl_md4.h')
0 files changed, 0 insertions, 0 deletions