Browse Source

Fixed the setmac command can`t be used when the gcc was updated.

when we updated to gcc 4.4.0, the compiler would change the uninitialized param to 1 when ac = 3,
which is beyond our expectation. So just initialize the param.

Change-Id: I4e3f5ecd05015114eefd2307129d4a4458f5bbee
Target: 3A2H
master
zhangbaoqi 10 years ago
committed by mengtianfang
parent
commit
606251db73
  1. 2
      Targets/Bonito3a2h/dev/eeprom.c

2
Targets/Bonito3a2h/dev/eeprom.c

@ -334,7 +334,7 @@ int cmd_eeprom_write(int ac, unsigned char *av[])
int cmd_setmac(int ac, unsigned char *av[])
{
int i, j, v, count, data_addr, param;
int i, j, v, count, data_addr, param = 0;
unsigned char *s = NULL;
unsigned char buf[32];
u32 base = (board_ver_num == LS3A2H_BOARD_OLD) ?

Loading…
Cancel
Save