summaryrefslogtreecommitdiff
path: root/bgpd/bgp_ecommunity.c
diff options
context:
space:
mode:
authorpaul <paul>2004-06-04 17:58:18 +0000
committerpaul <paul>2004-06-04 17:58:18 +0000
commit5228ad27e2f3abe0ebb69f66607aedc048b94a13 (patch)
treea65817a03150dbfeb56a1eaceab526f31be1cc1d /bgpd/bgp_ecommunity.c
parentc2bfbcc38428b53e856617e1da8bbe9f8d2ee2fa (diff)
2004-06-04 Paul Jakma <paul@dishone.st>
* type mismatch fixes
Diffstat (limited to 'bgpd/bgp_ecommunity.c')
-rw-r--r--bgpd/bgp_ecommunity.c10
1 files changed, 5 insertions, 5 deletions
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;