aboutsummaryrefslogtreecommitdiffstats
path: root/community/macchanger/fix-caddr_t.patch
blob: c5fe5f6e16cb32a2fa315f9e0222d9a2e82ad2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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");