diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-10 11:57:05 +0300 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2009-12-10 11:57:05 +0300 |
commit | 9e4ca89c3678431560a8259c75f8b5874d83d351 (patch) | |
tree | 178ca0de4c6fe5ecba90b51c5fb29c3e0b720cdb /bgpd/bgp_packet.c | |
parent | cc2dd9280c4456586080d1cf4537d26c02fa9a36 (diff) |
bgpd: compile warnings cleanup
* bgpd/bgp_fsm.c
* bgp_clearing_completed(): only used in one file, can be static
* bgpd/bgp_packet.c
* afi2str(): sayonara
* safi2str(): sayonara
* bgpd/bgp_route.c
* bgp_distance_reset(): sayonara
* bgpd/bgp_zebra.c
* bgp_ifindex_by_nexthop(): sayonara
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 1c9a3c91..61534191 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -920,30 +920,6 @@ bgp_notify_send (struct peer *peer, u_char code, u_char sub_code) bgp_notify_send_with_data (peer, code, sub_code, NULL, 0); } -static const char * -afi2str (afi_t afi) -{ - if (afi == AFI_IP) - return "AFI_IP"; - else if (afi == AFI_IP6) - return "AFI_IP6"; - else - return "Unknown AFI"; -} - -static const char * -safi2str (safi_t safi) -{ - if (safi == SAFI_UNICAST) - return "SAFI_UNICAST"; - else if (safi == SAFI_MULTICAST) - return "SAFI_MULTICAST"; - else if (safi == SAFI_MPLS_VPN || safi == BGP_SAFI_VPNV4) - return "SAFI_MPLS_VPN"; - else - return "Unknown SAFI"; -} - /* Send route refresh message to the peer. */ void bgp_route_refresh_send (struct peer *peer, afi_t afi, safi_t safi, |