From 93a786cb034fdd18b8131a16a6ea3d1cd9bd00de Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 4 May 2000 20:30:36 +0000 Subject: Removed a lot of unused variables. Please try compiling your code with --enable-warnings to see them. (The unused parameter warnings are usually bogus, the unused variable ones are very useful, but gcc is unable to control them separately.) --- proto/bgp/packets.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'proto/bgp') diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index e9ba050..d6c2169 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -77,7 +77,6 @@ bgp_create_update(struct bgp_conn *conn, byte *buf) struct bgp_bucket *buck; int remains = BGP_MAX_PACKET_LENGTH - BGP_HEADER_LENGTH - 4; byte *w; - ip_addr ip; int wd_size = 0; int r_size = 0; int a_size = 0; @@ -717,8 +716,6 @@ bgp_log_error(struct bgp_proto *p, char *msg, unsigned code, unsigned subcode, b static void bgp_rx_notification(struct bgp_conn *conn, byte *pkt, int len) { - unsigned arg; - if (len < 21) { bgp_error(conn, 1, 2, pkt+16, 2); -- cgit v1.2.3