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.
gentoo-overlay/net-analyzer/macchanger/files/macchanger-1.7.0-fix-caddr_...

14 lines
352 B

https://github.com/alobbs/macchanger/issues/14
--- a/src/netinfo.c
+++ b/src/netinfo.c
@@ -113,7 +113,7 @@
epa->size = IFHWADDRLEN;
memcpy(&req, &(net->dev), sizeof(struct ifreq));
- req.ifr_data = (caddr_t)epa;
+ req.ifr_data = (void *)epa;
if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) {
perror ("[ERROR] Could not read permanent MAC");