summaryrefslogtreecommitdiffstats
path: root/proto/bgp
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-04 22:30:36 +0200
committerMartin Mares <mj@ucw.cz>2000-05-04 22:30:36 +0200
commit93a786cb034fdd18b8131a16a6ea3d1cd9bd00de (patch)
tree7880559e8ad6f66b65a0fc97dfdf69f491a00e4a /proto/bgp
parentc817b9916f1134f687ba53220d607e6e193cf651 (diff)
downloadbird-93a786cb034fdd18b8131a16a6ea3d1cd9bd00de.tar
bird-93a786cb034fdd18b8131a16a6ea3d1cd9bd00de.zip
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.)
Diffstat (limited to 'proto/bgp')
-rw-r--r--proto/bgp/packets.c3
1 files changed, 0 insertions, 3 deletions
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);