Skip to content
  • Marc Hoersken's avatar
    connect.c/ftp.c: Fixed dereferencing pointer breakin strict-aliasing · 9c94236e
    Marc Hoersken authored
    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.
    9c94236e