summaryrefslogtreecommitdiff
path: root/ospfd/ospf_asbr.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-05-12 23:02:46 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-05-12 23:02:46 +0000
commit6db3a6f75c7206050b096dcbd4fde439b4bcb6e6 (patch)
tree8c4bb9a65e3b59f886d65046c3c8e3d29a2c63b4 /ospfd/ospf_asbr.c
parente43be0edb7b5d87a3afe3a26aa071251018b10f1 (diff)
[ospfd] CID #28, remove another ospf_lookup call - ospf_redistribute_withdraw
2006-05-12 Paul Jakma <paul.jakma@sun.com> * ospf_asbr.c: (ospf_redistribute_withdraw) remove ospf_lookup call by taking the struct ospf * as argument, which the caller has, fixing CID #28. * ospf_asbr.h: (ospf_redistribute_withdraw) update declaration * ospf_zebra.c: (ospf_redistribute_unset) update call to ospf_redistribute_withdraw to match.
Diffstat (limited to 'ospfd/ospf_asbr.c')
-rw-r--r--ospfd/ospf_asbr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c
index 426fac49..a4826237 100644
--- a/ospfd/ospf_asbr.c
+++ b/ospfd/ospf_asbr.c
@@ -270,14 +270,11 @@ ospf_asbr_status_update (struct ospf *ospf, u_char status)
}
void
-ospf_redistribute_withdraw (u_char type)
+ospf_redistribute_withdraw (struct ospf *ospf, u_char type)
{
- struct ospf *ospf;
struct route_node *rn;
struct external_info *ei;
- ospf = ospf_lookup ();
-
/* Delete external info for specified type. */
if (EXTERNAL_INFO (type))
for (rn = route_top (EXTERNAL_INFO (type)); rn; rn = route_next (rn))