From 6f3849774ffe35e445e33ba03f041c1a84ba35f1 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 10 May 2000 12:38:05 +0000 Subject: Use ea_get_int instead of ea_find. --- proto/rip/rip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/rip/rip.c') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 2c8c83d..edbc9c3 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -768,8 +768,8 @@ rip_rt_notify(struct proto *p, struct network *net, struct rte *new, struct rte e->metric = 0; e->whotoldme = IPA_NONE; - e->tag = ea_find(attrs, EA_RIP_TAG)->u.data; - e->metric = ea_find(attrs, EA_RIP_METRIC)->u.data; + e->tag = ea_get_int(attrs, EA_RIP_TAG, 0); + e->metric = ea_get_int(attrs, EA_RIP_METRIC, 1); if (e->metric > P_CF->infinity) e->metric = P_CF->infinity; -- cgit v1.2.3