From ef43a3dc3618e2e7836a9bf76572a69d94c4b4fe Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 25 Mar 2003 02:37:13 +0000 Subject: Import of Zebra CVS 20030325-02:30 --- ospfd/ospf_routemap.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'ospfd/ospf_routemap.c') diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c index a2b257fa..a4d05a13 100644 --- a/ospfd/ospf_routemap.c +++ b/ospfd/ospf_routemap.c @@ -43,10 +43,11 @@ void ospf_route_map_update (char *name) { + struct ospf *ospf = ospf_top; int type; /* If OSPF instatnce does not exist, return right now. */ - if (!ospf_top) + if (ospf == NULL) return; /* Update route-map */ @@ -64,7 +65,7 @@ ospf_route_map_update (char *name) if (old == NULL && ROUTEMAP (type) == NULL) continue; - ospf_distribute_list_update (type); + ospf_distribute_list_update (ospf, type); } } } @@ -72,10 +73,11 @@ ospf_route_map_update (char *name) void ospf_route_map_event (route_map_event_t event, char *name) { + struct ospf *ospf = ospf_top; int type; /* If OSPF instatnce does not exist, return right now. */ - if (!ospf_top) + if (ospf == NULL) return; /* Update route-map. */ @@ -84,7 +86,7 @@ ospf_route_map_event (route_map_event_t event, char *name) if (ROUTEMAP_NAME (type) && ROUTEMAP (type) && !strcmp (ROUTEMAP_NAME (type), name)) { - ospf_distribute_list_update (type); + ospf_distribute_list_update (ospf, type); } } } -- cgit v1.2.3