summaryrefslogtreecommitdiff
path: root/lib/routemap.h
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-08 06:29:12 +0000
committerhasso <hasso>2004-10-08 06:29:12 +0000
commit27a43a81004b620e571f71aa1ea4db182c607862 (patch)
tree59b57a73d0cd7f14c2bd0fd6d1844ac3de9023c0 /lib/routemap.h
parent1b1214273edec92affb7260b62eefed233f54d37 (diff)
More const strings.
Diffstat (limited to 'lib/routemap.h')
-rw-r--r--lib/routemap.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/routemap.h b/lib/routemap.h
index 4fd9e5e9..a6f3c5db 100644
--- a/lib/routemap.h
+++ b/lib/routemap.h
@@ -74,7 +74,7 @@ typedef enum
struct route_map_rule_cmd
{
/* Route map rule name (e.g. as-path, metric) */
- char *str;
+ const char *str;
/* Function for value set or match. */
route_map_result_t (*func_apply)(void *, struct prefix *,
@@ -155,24 +155,24 @@ void route_map_init_vty ();
/* Add match statement to route map. */
int
route_map_add_match (struct route_map_index *index,
- char *match_name,
+ const char *match_name,
char *match_arg);
/* Delete specified route match rule. */
int
route_map_delete_match (struct route_map_index *index,
- char *match_name,
+ const char *match_name,
char *match_arg);
/* Add route-map set statement to the route map. */
int
route_map_add_set (struct route_map_index *index,
- char *set_name,
+ const char *set_name,
char *set_arg);
/* Delete route map set rule. */
int
-route_map_delete_set (struct route_map_index *index, char *set_name,
+route_map_delete_set (struct route_map_index *index, const char *set_name,
char *set_arg);
/* Install rule command to the match list. */