Blame SOURCES/0005-inactive-paths.patch

4d9cdd
diff --git a/lib/routemap.c b/lib/routemap.c
4d9cdd
index 7f733c811..9afe18d10 100644
4d9cdd
--- a/lib/routemap.c
4d9cdd
+++ b/lib/routemap.c
4d9cdd
@@ -1799,12 +1799,11 @@ static struct list *route_map_get_index_list(struct route_node **rn,
4d9cdd
 /*
4d9cdd
  * This function returns the route-map index that best matches the prefix.
4d9cdd
  */
4d9cdd
-static struct route_map_index *route_map_get_index(struct route_map *map,
4d9cdd
-						   const struct prefix *prefix,
4d9cdd
-						   void *object,
4d9cdd
-						   uint8_t *match_ret)
4d9cdd
+static struct route_map_index *
4d9cdd
+route_map_get_index(struct route_map *map, const struct prefix *prefix,
4d9cdd
+		    void *object, enum route_map_cmd_result_t *match_ret)
4d9cdd
 {
4d9cdd
-	int ret = 0;
4d9cdd
+	enum route_map_cmd_result_t ret = RMAP_NOMATCH;
4d9cdd
 	struct list *candidate_rmap_list = NULL;
4d9cdd
 	struct route_node *rn = NULL;
4d9cdd
 	struct listnode *ln = NULL, *nn = NULL;
4d9cdd
@@ -2559,7 +2558,7 @@ route_map_result_t route_map_apply_ext(struct route_map *map,
4d9cdd
 	if ((!map->optimization_disabled)
4d9cdd
 	    && (map->ipv4_prefix_table || map->ipv6_prefix_table)) {
4d9cdd
 		index = route_map_get_index(map, prefix, match_object,
4d9cdd
-					    (uint8_t *)&match_ret);
4d9cdd
+					    &match_ret);
4d9cdd
 		if (index) {
4d9cdd
 			index->applied++;
4d9cdd
 			if (rmap_debug)