From 4c9641ba4df276080c670e03f65b1d442660a50f Mon Sep 17 00:00:00 2001 From: Michael Lambert Date: Thu, 22 Jul 2010 13:20:55 -0400 Subject: bgpd, lib: adopt afi_t and safi_t in several places * bgpd/bgp_attr.c, bgpd/bgp_open.h, bgpd/bgp_route.c, lib/prefix.c, lib/prefix.h: Various integer types were being used where, if we had strict type checking, afi_t and safi_t would be required. Signed-off-by: G.Balaji (cherry picked from commit c8af35ffa2dc79ff7d7ff00b1b61f1f50a100ab6) --- lib/prefix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/prefix.h') diff --git a/lib/prefix.h b/lib/prefix.h index a7598b7e..5f1ff05c 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -144,8 +144,8 @@ prefix6_bit (const struct in6_addr *prefix, const u_char prefixlen) } /* Prototypes. */ -extern int afi2family (int); -extern int family2afi (int); +extern int afi2family (afi_t); +extern afi_t family2afi (int); extern struct prefix *prefix_new (void); extern void prefix_free (struct prefix *); -- cgit v1.2.1