pkgsrc/net/libfetch/files
tnn fd1ca762e9 Fix strict aliasing issue which GCC 4.4 complained about.
While we know that "struct sockaddr_storage" has been engineered to alias
to all the sockaddr structs, the compiler does not know about this.
Thus, code like this may be unsafe to use:

struct sockaddr_storage ss;
struct sockaddr_in *sin = &ss;
sin->sin_port = 0; /* dereferencing here breaks ISO C aliasing rules */

A workaround is to wrap the struct in a union, e.g:
union anonymous {
  struct sockaddr_storage ss;
  struct sockaddr_in sin;
} u;
u.sin.sin_port = 0;
--
Approved by: joerg
2009-08-06 14:02:38 +00:00
..
common.c Be nice to ancient NetBSD releases. From Hauke Fath. 2009-02-22 19:11:48 +00:00
common.h Add !__MINT__ to the HAVE_SA_LEN test 2009-03-05 19:08:47 +00:00
errlist.sh libfetch-2.16: 2008-10-06 12:58:29 +00:00
fetch.3 Improve markup. 2009-03-16 18:11:39 +00:00
fetch.c Need sleep, unbreak: declare fetchRestartCalls as volatile, not extern. 2009-02-05 23:29:14 +00:00
fetch.cat3 Correctly regen the cat page. 2009-06-22 12:05:59 +00:00
fetch.h libfetch-2.22: 2009-02-05 22:45:25 +00:00
file.c libfetch-2.23: 2009-03-10 00:33:38 +00:00
ftp.c Fix strict aliasing issue which GCC 4.4 complained about. 2009-08-06 14:02:38 +00:00
ftp.errors libfetch-2.16: 2008-10-06 12:58:29 +00:00
http.c Like Linux, MiNT wants _GNU_SOURCE (for strptime) 2009-03-05 19:07:03 +00:00
http.errors libfetch-2.21: 2009-02-05 16:59:45 +00:00
Makefile libfetch-2.15: 2008-08-21 15:22:45 +00:00