ce23504416531eb36cb9ccddcafabf49330176b0
[openwrt.git] / target / linux / brcm47xx / patches-3.2 / 198-MIPS-BCM47XX-fix-signature-of-nvram_parse_macaddr.patch
1
2 --- a/arch/mips/include/asm/mach-bcm47xx/nvram.h
3 +++ b/arch/mips/include/asm/mach-bcm47xx/nvram.h
4 @@ -37,7 +37,7 @@ struct nvram_header {
5  
6  extern int nvram_getenv(char *name, char *val, size_t val_len);
7  
8 -static inline void nvram_parse_macaddr(char *buf, u8 *macaddr)
9 +static inline void nvram_parse_macaddr(char *buf, u8 macaddr[6])
10  {
11         if (strchr(buf, ':'))
12                 sscanf(buf, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", &macaddr[0],