Browse Source

gcc3 compatibility: removed ARP_NET_PROTOCOL().

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
68e33224ef
2 changed files with 3 additions and 10 deletions
  1. 2
    7
      src/include/gpxe/arp.h
  2. 1
    3
      src/net/ipv4.c

+ 2
- 7
src/include/gpxe/arp.h View File

@@ -26,13 +26,8 @@ struct arp_net_protocol {
26 26
 			  const void *net_addr );
27 27
 };
28 28
 
29
-/**
30
- * Register an ARP protocol
31
- *
32
- * @v protocol		ARP protocol
33
- */
34
-#define ARP_NET_PROTOCOL( protocol ) \
35
-	struct arp_net_protocol protocol __table ( arp_net_protocols, 01 )
29
+/** Declare an ARP protocol */
30
+#define __arp_net_protocol __table ( arp_net_protocols, 01 )
36 31
 
37 32
 extern int arp_resolve ( struct net_device *netdev,
38 33
 			 struct net_protocol *net_protocol,

+ 1
- 3
src/net/ipv4.c View File

@@ -530,9 +530,7 @@ struct tcpip_net_protocol ipv4_tcpip_protocol = {
530 530
 TCPIP_NET_PROTOCOL ( ipv4_tcpip_protocol );
531 531
 
532 532
 /** IPv4 ARP protocol */
533
-struct arp_net_protocol ipv4_arp_protocol = {
533
+struct arp_net_protocol ipv4_arp_protocol __arp_net_protocol = {
534 534
 	.net_protocol = &ipv4_protocol,
535 535
 	.check = ipv4_arp_check,
536 536
 };
537
-
538
-ARP_NET_PROTOCOL ( ipv4_arp_protocol );

Loading…
Cancel
Save