From 5228ad27e2f3abe0ebb69f66607aedc048b94a13 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 4 Jun 2004 17:58:18 +0000 Subject: 2004-06-04 Paul Jakma * type mismatch fixes --- bgpd/bgp_ecommunity.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bgpd/bgp_ecommunity.c') diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 4adbcf52..b3fc1c3a 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -58,7 +58,7 @@ ecommunity_free (struct ecommunity *ecom) static int ecommunity_add_val (struct ecommunity *ecom, struct ecommunity_val *eval) { - u_char *p; + u_int8_t *p; int ret; int c; @@ -119,7 +119,7 @@ ecommunity_uniq_sort (struct ecommunity *ecom) /* Parse Extended Communites Attribute in BGP packet. */ struct ecommunity * -ecommunity_parse (char *pnt, u_short length) +ecommunity_parse (u_int8_t *pnt, u_short length) { struct ecommunity tmp; struct ecommunity *new; @@ -232,7 +232,7 @@ ecommunity_hash_make (struct ecommunity *ecom) { int c; unsigned int key; - unsigned char *pnt; + u_int8_t *pnt; key = 0; pnt = ecom->val; @@ -530,13 +530,13 @@ char * ecommunity_ecom2str (struct ecommunity *ecom, int format) { int i; - u_char *pnt; + u_int8_t *pnt; int encode = 0; int type = 0; #define ECOMMUNITY_STR_DEFAULT_LEN 26 int str_size; int str_pnt; - u_char *str_buf; + char *str_buf; char *prefix; int len = 0; int first = 1; -- cgit v1.2.1