You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
345 B

  1. --- a/src/netinfo.c
  2. +++ b/src/netinfo.c
  3. @@ -113,7 +113,7 @@ mc_net_info_get_permanent_mac (const net
  4. epa->size = IFHWADDRLEN;
  5. memcpy(&req, &(net->dev), sizeof(struct ifreq));
  6. - req.ifr_data = (caddr_t)epa;
  7. + req.ifr_data = (char *)epa;
  8. if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) {
  9. perror ("[ERROR] Could not read permanent MAC");