diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-27 15:13:34 -0400 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-27 15:13:34 -0400 | 
| commit | d7c0a89a3a5697783a6dd89333ab660074790890 (patch) | |
| tree | eefa73e502f919b524b8a345437260d4acc23083 /ospfd/ospf_asbr.c | |
| parent | 28ac5a038101c66e4275a9b1ef6fb37b4f74fb6a (diff) | |
*: use C99 standard fixed-width integer types
The following types are nonstandard:
- u_char
- u_short
- u_int
- u_long
- u_int8_t
- u_int16_t
- u_int32_t
Replace them with the C99 standard types:
- uint8_t
- unsigned short
- unsigned int
- unsigned long
- uint8_t
- uint16_t
- uint32_t
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_asbr.c')
| -rw-r--r-- | ospfd/ospf_asbr.c | 19 | 
1 files changed, 10 insertions, 9 deletions
diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c index b970c1183a..18c1077da0 100644 --- a/ospfd/ospf_asbr.c +++ b/ospfd/ospf_asbr.c @@ -94,7 +94,8 @@ struct ospf_route *ospf_external_route_lookup(struct ospf *ospf,  /* Add an External info for AS-external-LSA. */ -struct external_info *ospf_external_info_new(u_char type, u_short instance) +struct external_info *ospf_external_info_new(uint8_t type, +					     unsigned short instance)  {  	struct external_info *new; @@ -127,7 +128,7 @@ int ospf_route_map_set_compare(struct route_map_set_values *values1,  /* Add an External info for AS-external-LSA. */  struct external_info * -ospf_external_info_add(struct ospf *ospf, u_char type, u_short instance, +ospf_external_info_add(struct ospf *ospf, uint8_t type, unsigned short instance,  		       struct prefix_ipv4 p, ifindex_t ifindex,  		       struct in_addr nexthop, route_tag_t tag)  { @@ -185,8 +186,8 @@ ospf_external_info_add(struct ospf *ospf, u_char type, u_short instance,  	return new;  } -void ospf_external_info_delete(struct ospf *ospf, u_char type, u_short instance, -			       struct prefix_ipv4 p) +void ospf_external_info_delete(struct ospf *ospf, uint8_t type, +			       unsigned short instance, struct prefix_ipv4 p)  {  	struct route_node *rn;  	struct ospf_external *ext; @@ -204,8 +205,8 @@ void ospf_external_info_delete(struct ospf *ospf, u_char type, u_short instance,  	}  } -struct external_info *ospf_external_info_lookup(struct ospf *ospf, u_char type, -						u_short instance, +struct external_info *ospf_external_info_lookup(struct ospf *ospf, uint8_t type, +						unsigned short instance,  						struct prefix_ipv4 *p)  {  	struct route_node *rn; @@ -255,7 +256,7 @@ struct ospf_lsa *ospf_external_info_find_lsa(struct ospf *ospf,  /* Update ASBR status. */ -void ospf_asbr_status_update(struct ospf *ospf, u_char status) +void ospf_asbr_status_update(struct ospf *ospf, uint8_t status)  {  	zlog_info("ASBR[Status:%d]: Update", status); @@ -281,8 +282,8 @@ void ospf_asbr_status_update(struct ospf *ospf, u_char status)  	ospf_router_lsa_update(ospf);  } -void ospf_redistribute_withdraw(struct ospf *ospf, u_char type, -				u_short instance) +void ospf_redistribute_withdraw(struct ospf *ospf, uint8_t type, +				unsigned short instance)  {  	struct route_node *rn;  	struct external_info *ei;  | 
