diff options
author | Denys Vlasenko | 2011-01-20 11:29:00 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-01-20 11:29:00 +0100 |
commit | b3b6c8bdf23d30c57d92458f1aac93ce84bf81a7 (patch) | |
tree | 09f864fc85a6743e218d7cb61496d4dfeb946050 /networking/ifplugd.c | |
parent | 53f30b41ec252d9973719b349a644477e72e1a09 (diff) | |
download | busybox-b3b6c8bdf23d30c57d92458f1aac93ce84bf81a7.zip busybox-b3b6c8bdf23d30c57d92458f1aac93ce84bf81a7.tar.gz |
eliminate aliasing warning in networking/route.c
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ifplugd.c')
-rw-r--r-- | networking/ifplugd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/ifplugd.c b/networking/ifplugd.c index 3b59a63..8dd0a5b 100644 --- a/networking/ifplugd.c +++ b/networking/ifplugd.c @@ -133,7 +133,8 @@ static smallint detect_link_mii(void) { /* char buffer instead of bona-fide struct avoids aliasing warning */ char buf[sizeof(struct ifreq)]; - struct ifreq *ifreq = (void *)buf; + struct ifreq *const ifreq = (void *)buf; + struct mii_ioctl_data *mii = (void *)&ifreq->ifr_data; set_ifreq_to_ifname(ifreq); @@ -155,7 +156,8 @@ static smallint detect_link_priv(void) { /* char buffer instead of bona-fide struct avoids aliasing warning */ char buf[sizeof(struct ifreq)]; - struct ifreq *ifreq = (void *)buf; + struct ifreq *const ifreq = (void *)buf; + struct mii_ioctl_data *mii = (void *)&ifreq->ifr_data; set_ifreq_to_ifname(ifreq); |