summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-11 10:20:16 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-11 10:20:16 +0200
commit70a338bc2748dec8dd8ed8badd2f9fc48f9ca687 (patch)
tree327f9f28a93bc87a642b1ee9b4a14cb12bf73ae0 /include/net.h
parent58f1051598a53728b26eb69ac001b3ec1072cf6b (diff)
downloadbarebox-70a338bc2748dec8dd8ed8badd2f9fc48f9ca687.tar.gz
barebox-70a338bc2748dec8dd8ed8badd2f9fc48f9ca687.tar.xz
Use unsigned char * for mac address. Otherwise (s)printf interpets
parts of the mac address as negative numbers and gives wrong results.
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 993a2ad7e5..8507360c6e 100644
--- a/include/net.h
+++ b/include/net.h
@@ -428,7 +428,7 @@ ushort getenv_VLAN(char *);
void copy_filename (char *dst, char *src, int size);
int string_to_enet_addr(const char *str, char *enetaddr);
-void enet_addr_to_string(const char *enetaddr, char *str);
+void enet_addr_to_string(const unsigned char *enetaddr, char *str);
/**********************************************************************/
/* Network devices */