summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-30 23:24:53 +0200
committerMartin Mares <mj@ucw.cz>2000-05-30 23:24:53 +0200
commit2cec475b8fbaa6cb0865ceacd900ffb678818330 (patch)
treecd8b96f3d70496eae18a0d502dddcaa2a7f47964 /proto
parent2f71123158973d770eee1dea64b46a4774bcf9a5 (diff)
downloadbird-2cec475b8fbaa6cb0865ceacd900ffb678818330.tar
bird-2cec475b8fbaa6cb0865ceacd900ffb678818330.zip
Removed several unused local variables.
Diffstat (limited to 'proto')
-rw-r--r--proto/rip/rip.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 9466e43..01a1aed 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -758,8 +758,6 @@ rip_make_tmp_attrs(struct rte *rt, struct linpool *pool)
static void
rip_store_tmp_attrs(struct rte *rt, struct ea_list *attrs)
{
- struct proto *p = rt->attrs->proto;
-
rt->u.rip.tag = ea_get_int(attrs, EA_RIP_TAG, 0);
rt->u.rip.metric = ea_get_int(attrs, EA_RIP_METRIC, 1);
}
@@ -881,9 +879,6 @@ rip_init_config(struct rip_proto_config *c)
static int
rip_get_attr(eattr *a, byte *buf)
{
- unsigned int i = EA_ID(a->id);
- struct attr_desc *d;
-
switch (a->id) {
case EA_RIP_METRIC: buf += bsprintf( buf, "metric: %d", a->u.data ); return GA_FULL;
case EA_RIP_TAG: buf += bsprintf( buf, "tag: %d", a->u.data ); return GA_FULL;