Blame SOURCES/0009-routemap.patch

792bb3
diff --git a/lib/routemap.c b/lib/routemap.c
792bb3
index a90443a..0b594b2 100644
792bb3
--- a/lib/routemap.c
792bb3
+++ b/lib/routemap.c
792bb3
@@ -1649,9 +1649,9 @@ static struct list *route_map_get_index_list(struct route_node **rn,
792bb3
  */
792bb3
 static struct route_map_index *
792bb3
 route_map_get_index(struct route_map *map, const struct prefix *prefix,
792bb3
-		    route_map_object_t type, void *object, uint8_t *match_ret)
792bb3
+		    route_map_object_t type, void *object, enum route_map_cmd_result_t *match_ret)
792bb3
 {
792bb3
-	int ret = 0;
792bb3
+	enum route_map_cmd_result_t ret = RMAP_NOMATCH;
792bb3
 	struct list *candidate_rmap_list = NULL;
792bb3
 	struct route_node *rn = NULL;
792bb3
 	struct listnode *ln = NULL, *nn = NULL;
792bb3
@@ -2399,7 +2399,7 @@ route_map_result_t route_map_apply(struct route_map *map,
792bb3
 	if ((!map->optimization_disabled)
792bb3
 	    && (map->ipv4_prefix_table || map->ipv6_prefix_table)) {
792bb3
 		index = route_map_get_index(map, prefix, type, object,
792bb3
-					    (uint8_t *)&match_ret);
792bb3
+					    &match_ret);
792bb3
 		if (index) {
792bb3
 			if (rmap_debug)
792bb3
 				zlog_debug(