MIPS: BCM47XX: fix signature of nvram_parse_macaddr
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 27 Feb 2012 23:56:12 +0000 (00:56 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Mar 2012 20:20:51 +0000 (15:20 -0500)
Explicitly enforce an char array of 6 bytes for the mac address.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
arch/mips/include/asm/mach-bcm47xx/nvram.h

index 184d5ecb5f51bbec1f7b0584adfe0e273a383a42..69ef3efe06e7ab40f5a168a5ec766031177df2d6 100644 (file)
@@ -37,7 +37,7 @@ struct nvram_header {
 
 extern int nvram_getenv(char *name, char *val, size_t val_len);
 
-static inline void nvram_parse_macaddr(char *buf, u8 *macaddr)
+static inline void nvram_parse_macaddr(char *buf, u8 macaddr[6])
 {
        if (strchr(buf, ':'))
                sscanf(buf, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", &macaddr[0],