Avoid implicit cast warning.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-07-20 00:01:23 +02:00
parent cd8502743f
commit 1032adb5b4

4
bgp.c
View file

@ -1037,7 +1037,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
capability->code, peer->name); capability->code, peer->name);
bgp_send_notification_full(peer, BGP_ERR_OPEN, BGP_ERR_OPN_UNSUP_CAP, 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 */ /* we don't terminate, still; we just jump to the next one */
continue; continue;
} }
@ -1050,7 +1050,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
mp_cap->afi, mp_cap->safi, peer->name); mp_cap->afi, mp_cap->safi, peer->name);
bgp_send_notification_full(peer, BGP_ERR_OPEN, BGP_ERR_OPN_UNSUP_CAP, 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 */ /* we don't terminate, still; we just jump to the next one */
continue; continue;
} }