aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/ethernet.c
diff options
context:
space:
mode:
authorMarty Connor <mdc@etherboot.org>2006-08-09 04:42:14 +0000
committerMarty Connor <mdc@etherboot.org>2006-08-09 04:42:14 +0000
commitee9ae8130a7acfbc6a96dd86cf6cf62569e68169 (patch)
tree63a80d61dd24cd4f649a478c79f733efeb3c771d /src/net/ethernet.c
parentdd7e103d58c04b59d019216989861977b61f2ca6 (diff)
downloadipxe-ee9ae8130a7acfbc6a96dd86cf6cf62569e68169.tar.gz
Remove _PROTOCOL macros for gcc 3.2 compatibility
Diffstat (limited to 'src/net/ethernet.c')
-rw-r--r--src/net/ethernet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index c4b526f51..4cdf571c6 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -104,7 +104,7 @@ static const char * eth_ntoa ( const void *ll_addr ) {
}
/** Ethernet protocol */
-struct ll_protocol ethernet_protocol = {
+struct ll_protocol ethernet_protocol __ll_protocol = {
.name = "Ethernet",
.ll_proto = htons ( ARPHRD_ETHER ),
.ll_addr_len = ETH_ALEN,
@@ -113,5 +113,3 @@ struct ll_protocol ethernet_protocol = {
.rx = eth_rx,
.ntoa = eth_ntoa,
};
-
-LL_PROTOCOL ( ethernet_protocol );