From 01d16d821f4218ce0db9257013d0ad9b339cabe6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 2 Mar 2015 16:25:53 +0000 Subject: [libc] Rewrite byte-swapping code Signed-off-by: Michael Brown --- src/drivers/net/eepro.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/net/eepro.c b/src/drivers/net/eepro.c index 5c3ea6423..97b4c4061 100644 --- a/src/drivers/net/eepro.c +++ b/src/drivers/net/eepro.c @@ -601,9 +601,9 @@ static int eepro_probe ( struct nic *nic, struct isa_device *isa ) { l_eepro = 0; name = "Intel 82595-based LAN card"; } - station_addr.saddr[0] = swap16(station_addr.saddr[0]); - station_addr.saddr[1] = swap16(station_addr.saddr[1]); - station_addr.saddr[2] = swap16(station_addr.saddr[2]); + station_addr.saddr[0] = bswap_16(station_addr.saddr[0]); + station_addr.saddr[1] = bswap_16(station_addr.saddr[1]); + station_addr.saddr[2] = bswap_16(station_addr.saddr[2]); for (i = 0; i < ETH_ALEN; i++) { nic->node_addr[i] = station_addr.caddr[i]; } -- cgit v1.2.3-55-g7522