From c9e52be3f4d98943b67fbbe5d9a7ccd823b88326 Mon Sep 17 00:00:00 2001 From: hasso Date: Sun, 26 Sep 2004 16:09:34 +0000 Subject: Compiler warnings fixes. --- bgpd/ChangeLog | 4 ++++ bgpd/bgp_aspath.c | 2 +- bgpd/bgp_packet.c | 2 +- bgpd/bgp_vty.c | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) (limited to 'bgpd') diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index ee0b3113..2bcce1c7 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,7 @@ +2004-09-26 Hasso Tepper + + * bgp_aspath.c, bgp_packet.c, bgp_vty.c: Fix compiler warnings. + 2004-09-23 Hasso Tepper * *.[c|h]: list -> struct list *, listnode -> struct listnode *. diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index d30ef4cc..bcb8f16f 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -136,7 +136,7 @@ aspath_make_str_count (struct aspath *as) struct assegment *assegment; int str_size = ASPATH_STR_DEFAULT_LEN; int str_pnt; - u_char *str_buf; + char *str_buf; int count = 0; /* Empty aspath. */ diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 42820273..b4cd1301 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2253,7 +2253,7 @@ bgp_read (struct thread *thread) bgp_notify_send_with_data (peer, BGP_NOTIFY_HEADER_ERR, BGP_NOTIFY_HEADER_BAD_MESLEN, - notify_data_length, 2); + (u_char *) notify_data_length, 2); goto done; } diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 92918bdf..27a3c2eb 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -2584,7 +2584,7 @@ DEFUN (neighbor_description, b = buffer_new (1024); for (i = 1; i < argc; i++) { - buffer_putstr (b, (u_char *)argv[i]); + buffer_putstr (b, argv[i]); buffer_putc (b, ' '); } buffer_putc (b, '\0'); -- cgit v1.2.1