]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use ea_get_int instead of ea_find.
authorPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 12:38:05 +0000 (12:38 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 12:38:05 +0000 (12:38 +0000)
proto/rip/rip.c

index 2c8c83d4b832081a4325562cb89eb875a26491a3..edbc9c390bd128c23c70a6b039ca0952c810dd3e 100644 (file)
@@ -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;