forked from Imagelibrary/rtems
2005-04-26 Joel Sherrill <joel@OARcorp.com>
* network/network.c: Eliminate warnings.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2005-04-26 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* network/network.c: Eliminate warnings.
|
||||||
|
|
||||||
2005-04-20 Eric Norum <norume@aps.anl.gov>
|
2005-04-20 Eric Norum <norume@aps.anl.gov>
|
||||||
|
|
||||||
* startup/bspstart.c
|
* startup/bspstart.c
|
||||||
|
|||||||
@@ -825,13 +825,12 @@ rtems_fec_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching )
|
|||||||
*/
|
*/
|
||||||
if (config->hardware_address) {
|
if (config->hardware_address) {
|
||||||
hwaddr = config->hardware_address;
|
hwaddr = config->hardware_address;
|
||||||
}
|
} else if ((hwaddr = bsp_gethwaddr(unitNumber - 1)) == NULL) {
|
||||||
else if ((hwaddr = bsp_gethwaddr(unitNumber - 1)) == NULL) {
|
|
||||||
/* Locally-administered address */
|
/* Locally-administered address */
|
||||||
static const char defaultAddress[ETHER_ADDR_LEN] = {
|
static const unsigned char defaultAddress[ETHER_ADDR_LEN] = {
|
||||||
0x06, 'R', 'T', 'E', 'M', 'S'};
|
0x06, 'R', 'T', 'E', 'M', 'S'};
|
||||||
printf ("WARNING -- No %s%d Ethernet address specified -- Using default address.\n",
|
printf ("WARNING -- No %s%d Ethernet address specified "
|
||||||
unitName, unitNumber);
|
"-- Using default address.\n", unitName, unitNumber);
|
||||||
hwaddr = defaultAddress;
|
hwaddr = defaultAddress;
|
||||||
}
|
}
|
||||||
printf("%s%d: Ethernet address: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
printf("%s%d: Ethernet address: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user