diff options
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); |