summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2004-05-31 22:57:38 +0200
committerMartin Mares <mj@ucw.cz>2004-05-31 22:57:38 +0200
commit6a57bb311018570b6ee7beccafd2075108e346cb (patch)
tree07d04364cf10345c1f80ddeb595f66ad80e733ed
parentd83faf8dc441259183d87c6669e76e4addc61b21 (diff)
downloadbird-6a57bb311018570b6ee7beccafd2075108e346cb.tar
bird-6a57bb311018570b6ee7beccafd2075108e346cb.zip
Killed a couple of unused variables.
We really should compile with warnings enabled.
-rw-r--r--filter/filter.c2
-rw-r--r--proto/bgp/bgp.c1
-rw-r--r--proto/rip/rip.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/filter/filter.c b/filter/filter.c
index a50dce6..9bae856 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 7069d98..3d70192 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 c3a4951..c41384c 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;