summaryrefslogtreecommitdiff
path: root/lib/routemap.c
diff options
context:
space:
mode:
authorpaul <paul>2004-10-11 11:28:44 +0000
committerpaul <paul>2004-10-11 11:28:44 +0000
commitc9eca01b298b83a849a608477f5f5b978a58167e (patch)
treeafd25d986e49e57c73a4d555d4c083ab66d454fa /lib/routemap.c
parent6c83567192ada1a66822c3f35580ce6a85f51ac9 (diff)
2004-10-11 Paul Jakma <paul@dishone.st>
* if.h: mtu's should be unsigned. * routemap.{c,h}: const char updates * smux.{c,h}: ditto
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index cd231be7..cc63e3a1 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -489,7 +489,7 @@ route_map_rule_delete (struct route_map_rule_list *list,
/* strcmp wrapper function which don't crush even argument is NULL. */
int
-rulecmp (char *dst, char *src)
+rulecmp (const char *dst, const char *src)
{
if (dst == NULL)
{
@@ -511,7 +511,7 @@ rulecmp (char *dst, char *src)
/* Add match statement to route map. */
int
route_map_add_match (struct route_map_index *index, const char *match_name,
- char *match_arg)
+ const char *match_arg)
{
struct route_map_rule *rule;
struct route_map_rule *next;
@@ -570,7 +570,7 @@ route_map_add_match (struct route_map_index *index, const char *match_name,
/* Delete specified route match rule. */
int
route_map_delete_match (struct route_map_index *index, const char *match_name,
- char *match_arg)
+ const char *match_arg)
{
struct route_map_rule *rule;
struct route_map_rule_cmd *cmd;
@@ -597,7 +597,7 @@ route_map_delete_match (struct route_map_index *index, const char *match_name,
/* Add route-map set statement to the route map. */
int
route_map_add_set (struct route_map_index *index, const char *set_name,
- char *set_arg)
+ const char *set_arg)
{
struct route_map_rule *rule;
struct route_map_rule *next;
@@ -656,7 +656,7 @@ route_map_add_set (struct route_map_index *index, const char *set_name,
/* Delete route map set rule. */
int
route_map_delete_set (struct route_map_index *index, const char *set_name,
- char *set_arg)
+ const char *set_arg)
{
struct route_map_rule *rule;
struct route_map_rule_cmd *cmd;