Avoid implicit cast warning.
authorBenjamin Cama <benoar@dolka.fr>
Tue, 19 Jul 2011 22:01:23 +0000 (00:01 +0200)
committerBenjamin Cama <benoar@dolka.fr>
Thu, 28 Jul 2011 12:58:30 +0000 (14:58 +0200)
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
bgp.c

diff --git a/bgp.c b/bgp.c
index a9ce8ec..2309a9c 100644 (file)
--- a/bgp.c
+++ b/bgp.c
@@ -1037,7 +1037,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
                            capability->code, peer->name);
 
                        bgp_send_notification_full(peer, BGP_ERR_OPEN, BGP_ERR_OPN_UNSUP_CAP,
-                               capability, 2 + capability->len);
+                               (char *)capability, 2 + capability->len);
                        /* we don't terminate, still; we just jump to the next one */
                        continue;
                    }
@@ -1050,7 +1050,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
                            mp_cap->afi, mp_cap->safi, peer->name);
 
                        bgp_send_notification_full(peer, BGP_ERR_OPEN, BGP_ERR_OPN_UNSUP_CAP,
-                               capability, 2 + capability->len);
+                               (char *)capability, 2 + capability->len);
                        /* we don't terminate, still; we just jump to the next one */
                        continue;
                    }