diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-05-04 23:05:47 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-05-11 12:10:21 +0200 |
commit | 47c447c42e0bfa1836d951d1e6c1a2236d39dcbb (patch) | |
tree | 4bf10914440cb7d2df02fcfa7f7c2733a582cd6e /proto/rip | |
parent | 95616c820248018f4999972cad315f2da60e4960 (diff) |
Minor cleanups.
Diffstat (limited to 'proto/rip')
-rw-r--r-- | proto/rip/rip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c index b41c3f8d..281296a5 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -624,7 +624,6 @@ rip_dump(struct proto *p) int i; node *w; struct rip_interface *rif; - i = 0; CHK_MAGIC; WALK_LIST( w, P->connections ) { @@ -995,8 +994,8 @@ static int rip_get_attr(eattr *a, byte *buf, int buflen UNUSED) { 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; + case EA_RIP_METRIC: bsprintf( buf, "metric: %d", a->u.data ); return GA_FULL; + case EA_RIP_TAG: bsprintf( buf, "tag: %d", a->u.data ); return GA_FULL; default: return GA_UNKNOWN; } } |