ifplugd: fix compile error
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 23 Oct 2009 16:31:02 +0000 (18:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 23 Oct 2009 16:31:02 +0000 (18:31 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifplugd.c

index 8abecb90aae5abb0540d484d9c844ddf8b3bec14..43f26c6df456e0573c3900fa01062444e74d2e90 100644 (file)
@@ -361,7 +361,7 @@ static smallint detect_link_ethtool(void)
        set_ifreq_to_ifname(&ifreq);
 
        edata.cmd = ETHTOOL_GLINK;
-       ifreq.ifr_data = &edata;
+       ifreq.ifr_data = (void*) &edata;
 
        if (network_ioctl(SIOCETHTOOL, &ifreq) < 0) {
                bb_perror_msg("ETHTOOL_GLINK failed");