void-packages/srcpkgs/macchanger/patches/fix-caddr_t.patch
2015-08-16 14:47:07 +02:00

13 lines
357 B
Diff

https://github.com/alobbs/macchanger/issues/14
--- ./src/netinfo.c.orig
+++ ./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");