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.) --- nest/a-path.c | 2 +- nest/iface.c | 3 +-- nest/proto.c | 1 - nest/rt-table.c | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) (limited to 'nest') 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) -- cgit v1.2.3