summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-26 11:55:05 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-26 11:56:22 +0200
commit1dd5262eb950210a77a01d79327d2fbadae65f86 (patch)
treeae7b2aec8c80f2fe281a0f4936f8127f1cc750f6 /include/net.h
parent3b6a1db325bbb3bc89f38efe9527c41367e6e1f1 (diff)
downloadbarebox-1dd5262eb950210a77a01d79327d2fbadae65f86.tar.gz
barebox-1dd5262eb950210a77a01d79327d2fbadae65f86.tar.xz
net: Make set_ethaddr argument const
The set_ethaddr callback should not modify the MAC address passed to it, so make it const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 364011b20f..29559372a9 100644
--- a/include/net.h
+++ b/include/net.h
@@ -42,7 +42,7 @@ struct eth_device {
int (*recv) (struct eth_device*);
void (*halt) (struct eth_device*);
int (*get_ethaddr) (struct eth_device*, u8 adr[6]);
- int (*set_ethaddr) (struct eth_device*, u8 adr[6]);
+ int (*set_ethaddr) (struct eth_device*, const unsigned char *adr);
struct eth_device *next;
void *priv;