diff options
author | paul <paul> | 2003-03-25 02:37:13 +0000 |
---|---|---|
committer | paul <paul> | 2003-03-25 02:37:13 +0000 |
commit | f7ccadc4a079d585770cb5fc6add832d4384facc (patch) | |
tree | c2c96f7405c46112eb3d8f6efcc693e040bc222b /ospfd/ospf_routemap.c | |
parent | 139c7c96b474a90aa3685b7efb8f23b550be1ff1 (diff) | |
download | quagga-zebra.org.20030325.tar.bz2 quagga-zebra.org.20030325.tar.xz |
Import of Zebra CVS 20030325-02:30zebra.org.20030325
Diffstat (limited to 'ospfd/ospf_routemap.c')
-rw-r--r-- | ospfd/ospf_routemap.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); } } } |