From: Martin Mares Date: Mon, 31 May 2004 20:57:38 +0000 (+0000) Subject: Killed a couple of unused variables. X-Git-Tag: v1.2.0~382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a57bb311018570b6ee7beccafd2075108e346cb;p=thirdparty%2Fbird.git Killed a couple of unused variables. We really should compile with warnings enabled. --- diff --git a/filter/filter.c b/filter/filter.c index a50dce6c6..9bae856b6 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -294,7 +294,7 @@ interpret(struct f_inst *what) { struct symbol *sym; struct f_val v1, v2, res; - int i,j,k; + int i; res.type = T_VOID; if (!what) diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 7069d982a..3d70192c7 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -373,7 +373,6 @@ static int bgp_incoming_connection(sock *sk, int dummy) { struct proto_config *pc; - node *n; int match = 0; DBG("BGP: Incoming connection from %I port %d\n", sk->daddr, sk->dport); diff --git a/proto/rip/rip.c b/proto/rip/rip.c index c3a495100..c41384c48 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -384,7 +384,7 @@ static int rip_process_packet( struct proto *p, struct rip_packet *packet, int num, ip_addr whotoldme, int port ) { int i; - int native_class = 0, authenticated = 0; + int authenticated = 0; neighbor *neighbor; switch( packet->heading.version ) { @@ -606,7 +606,7 @@ static void rip_dump(struct proto *p) { int i; - node *w, *e; + node *w; struct rip_interface *rif; i = 0;