diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/arp.c | 2 | ||||
-rw-r--r-- | networking/arping.c | 2 | ||||
-rw-r--r-- | networking/ftpd.c | 2 | ||||
-rw-r--r-- | networking/ftpgetput.c | 2 | ||||
-rw-r--r-- | networking/ifupdown.c | 2 | ||||
-rw-r--r-- | networking/inetd.c | 2 | ||||
-rw-r--r-- | networking/ping.c | 2 | ||||
-rw-r--r-- | networking/slattach.c | 2 | ||||
-rw-r--r-- | networking/tc.c | 3 | ||||
-rw-r--r-- | networking/tcpudp.c | 2 | ||||
-rw-r--r-- | networking/telnet.c | 2 | ||||
-rw-r--r-- | networking/telnetd.c | 2 | ||||
-rw-r--r-- | networking/tftp.c | 2 | ||||
-rw-r--r-- | networking/wget.c | 2 | ||||
-rw-r--r-- | networking/zcip.c | 2 |
15 files changed, 15 insertions, 16 deletions
diff --git a/networking/arp.c b/networking/arp.c index 278f2dc..0ef267a 100644 --- a/networking/arp.c +++ b/networking/arp.c @@ -51,7 +51,7 @@ struct globals { const char *device; /* current device */ smallint hw_set; /* flag if hw-type was set (-H) */ -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define ap (G.ap ) #define hw (G.hw ) diff --git a/networking/arping.c b/networking/arping.c index e3418a9..effe418 100644 --- a/networking/arping.c +++ b/networking/arping.c @@ -45,7 +45,7 @@ struct globals { unsigned received; unsigned brd_recv; unsigned req_recv; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define src (G.src ) #define dst (G.dst ) diff --git a/networking/ftpd.c b/networking/ftpd.c index b7d5b20..186ff50 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c @@ -106,7 +106,7 @@ struct globals { /* We need these aligned to uint32_t */ char msg_ok [(sizeof("NNN " MSG_OK ) + 3) & 0xfffc]; char msg_err[(sizeof("NNN " MSG_ERR) + 3) & 0xfffc]; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define INIT_G() do { \ /* Moved to main */ \ diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 2dd7e92..120ccff 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c @@ -23,7 +23,7 @@ struct globals { int verbose_flag; int do_continue; char buf[1]; /* actually [BUFSZ] */ -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) enum { BUFSZ = COMMON_BUFSIZE - offsetof(struct globals, buf) }; struct BUG_G_too_big { diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 51b3626..bf88b1c 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -106,7 +106,7 @@ enum { struct globals { char **my_environ; const char *startup_PATH; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define INIT_G() do { } while (0) diff --git a/networking/inetd.c b/networking/inetd.c index a455733..7aa6b7b 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -313,7 +313,7 @@ struct globals { fd_set allsock; /* Used in next_line(), and as scratch read buffer */ char line[256]; /* _at least_ 256, see LINE_SIZE */ -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) enum { LINE_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line) }; struct BUG_G_too_big { diff --git a/networking/ping.c b/networking/ping.c index 23b39f2..467b7f6 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -263,7 +263,7 @@ struct globals { #endif } pingaddr; char rcvd_tbl[MAX_DUP_CHK / 8]; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define pingsock (G.pingsock ) #define if_index (G.if_index ) diff --git a/networking/slattach.c b/networking/slattach.c index d3212bb..12a3067 100644 --- a/networking/slattach.c +++ b/networking/slattach.c @@ -20,7 +20,7 @@ struct globals { int handle; int saved_disc; struct termios saved_state; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define handle (G.handle ) #define saved_disc (G.saved_disc ) diff --git a/networking/tc.c b/networking/tc.c index 541a0f8..6a5a850 100644 --- a/networking/tc.c +++ b/networking/tc.c @@ -43,8 +43,7 @@ struct globals { __u32 filter_parent; __u32 filter_prio; __u32 filter_proto; -}; - +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define filter_ifindex (G.filter_ifindex) #define filter_qdisc (G.filter_qdisc) diff --git a/networking/tcpudp.c b/networking/tcpudp.c index d0db33b..42845df 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c @@ -50,7 +50,7 @@ struct globals { unsigned cmax; char **env_cur; char *env_var[1]; /* actually bigger */ -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define verbose (G.verbose ) #define max_per_host (G.max_per_host) diff --git a/networking/telnet.c b/networking/telnet.c index 013d959..344bb0d 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -75,7 +75,7 @@ struct globals { char iacbuf[IACBUFSIZE]; struct termios termios_def; struct termios termios_raw; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define INIT_G() do { \ struct G_sizecheck { \ diff --git a/networking/telnetd.c b/networking/telnetd.c index b0a1cc4..dd59de9 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -60,7 +60,7 @@ struct globals { const char *loginpath; const char *issuefile; int maxfd; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define INIT_G() do { \ G.loginpath = "/bin/login"; \ diff --git a/networking/tftp.c b/networking/tftp.c index b2c3c03..0e5b48d 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -90,7 +90,7 @@ struct globals { const char *file; bb_progress_t pmt; #endif -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) struct BUG_G_too_big { char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1]; diff --git a/networking/wget.c b/networking/wget.c index ad1770b..9d813dc 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -30,7 +30,7 @@ struct globals { #endif smallint chunked; /* chunked transfer encoding */ smallint got_clen; /* got content-length: from server */ -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) struct BUG_G_too_big { char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1]; diff --git a/networking/zcip.c b/networking/zcip.c index a4da5cb..db10d0a 100644 --- a/networking/zcip.c +++ b/networking/zcip.c @@ -77,7 +77,7 @@ enum { struct globals { struct sockaddr saddr; struct ether_addr eth_addr; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define saddr (G.saddr ) #define eth_addr (G.eth_addr) |