aboutsummaryrefslogtreecommitdiffstats
path: root/community/macchanger/fix-caddr_t.patch
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2017-01-27 23:01:17 +0100
committerTimo Teräs <timo.teras@iki.fi>2017-01-30 11:21:23 +0200
commite816d72f22514ca26a734943d223c67adc8d421e (patch)
tree99e037c1fdf68a61269dfab39ab0b399f9d92f46 /community/macchanger/fix-caddr_t.patch
parent1a8ed0ad0f1a4b5f8a93532d74a9ba3a51f82897 (diff)
downloadaports-e816d72f22514ca26a734943d223c67adc8d421e.tar.bz2
aports-e816d72f22514ca26a734943d223c67adc8d421e.tar.xz
community/macchanger: move from testing
Diffstat (limited to 'community/macchanger/fix-caddr_t.patch')
-rw-r--r--community/macchanger/fix-caddr_t.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/macchanger/fix-caddr_t.patch b/community/macchanger/fix-caddr_t.patch
new file mode 100644
index 0000000000..c5fe5f6e16
--- /dev/null
+++ b/community/macchanger/fix-caddr_t.patch
@@ -0,0 +1,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");