summaryrefslogtreecommitdiffstats
path: root/nest
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 /nest
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 'nest')
-rw-r--r--nest/a-path.c2
-rw-r--r--nest/iface.c3
-rw-r--r--nest/proto.c1
-rw-r--r--nest/rt-table.c1
4 files changed, 2 insertions, 5 deletions
diff --git a/nest/a-path.c b/nest/a-path.c
index 3541522..0ea3e7b 100644
--- a/nest/a-path.c
+++ b/nest/a-path.c
@@ -47,7 +47,7 @@ as_path_format(struct adata *path, byte *buf, unsigned int size)
byte *e = p + path->length;
byte *end = buf + size - 8;
int sp = 1;
- int l, type, isset, as;
+ int l, isset;
while (p < e)
{
diff --git a/nest/iface.c b/nest/iface.c
index d41b39d..c585a53 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -202,7 +202,6 @@ struct iface *
if_update(struct iface *new)
{
struct iface *i;
- struct ifa *a, *b;
unsigned c;
WALK_LIST(i, iface_list)
@@ -263,7 +262,7 @@ if_end_partial_update(struct iface *i)
void
if_end_update(void)
{
- struct iface *i, j;
+ struct iface *i;
struct ifa *a, *b;
if (!config->router_id)
diff --git a/nest/proto.c b/nest/proto.c
index 1af76ea..7b9821a 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -460,7 +460,6 @@ proto_notify_state(struct proto *p, unsigned ps)
}
break;
default:
- error:
bug("Invalid state transition for %s from %s/%s to */%s", p->name, c_states[cs], p_states[ops], p_states[ps]);
}
p->proto_state = ps;
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 0c4c9e7..832e9ef 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -747,7 +747,6 @@ rt_show_cleanup(struct cli *c)
void
rt_show(struct rt_show_data *d)
{
- struct rtable_config *tc;
net *n;
if (d->pxlen == 256)