aboutsummaryrefslogtreecommitdiff
path: root/src/tool_getparam.h
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-06-11 12:24:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-06-11 15:26:30 +0200
commit9c94236e6cc078a0dc5a78b6e2fefc1403e5375e (patch)
tree15c4542b712a0ac9a000a86c6322cdf3a6575b16 /src/tool_getparam.h
parent3f9ab7cf5deb892cc7b8cb3f36322e072898b789 (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 'src/tool_getparam.h')
0 files changed, 0 insertions, 0 deletions