commit | 48584645fbe8ec869b0f7f54b26945aa2aa3c26d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun May 09 10:32:54 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun May 09 10:32:54 2021 +0200 |
tree | ef3f24201d602f25033b393ba18039ec7d80a9de | |
parent | b2475a139e69ba7792054233faee946be7f83ca9 [diff] |
BUILD: http_fetch: address a few aliasing warnings with older compilers gcc-4.4 complains about aliasing in smp_fetch_url_port() and smp_fetch_url_ip() because the local addr variable is casted to sturct sockaddr_in before being checked. The family should be checked on the sockaddr_storage and we have a function to retrieve the port. The compiler still sees some warnings but these ones are OK now.