summaryrefslogtreecommitdiff
path: root/ospfd/ospf_routemap.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-08 08:17:22 +0000
committerhasso <hasso>2004-10-08 08:17:22 +0000
commiteb1ce6059a00f3f0dd92c965aa5982907b54c00d (patch)
treeebd6583ba2f2f9909c25653d0349662e08c26ecf /ospfd/ospf_routemap.c
parent2e864cfa12724ec20e82f0a24e1be5929e3a0cef (diff)
Compiler warnings fixes round 1.
Diffstat (limited to 'ospfd/ospf_routemap.c')
-rw-r--r--ospfd/ospf_routemap.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/ospfd/ospf_routemap.c b/ospfd/ospf_routemap.c
index 64822d61..52fa901b 100644
--- a/ospfd/ospf_routemap.c
+++ b/ospfd/ospf_routemap.c
@@ -98,7 +98,7 @@ ospf_route_map_event (route_map_event_t event, char *name)
/* Delete rip route map rule. */
int
ospf_route_match_delete (struct vty *vty, struct route_map_index *index,
- char *command, char *arg)
+ const char *command, char *arg)
{
int ret;
@@ -123,7 +123,7 @@ ospf_route_match_delete (struct vty *vty, struct route_map_index *index,
int
ospf_route_match_add (struct vty *vty, struct route_map_index *index,
- char *command, char *arg)
+ const char *command, char *arg)
{
int ret;
@@ -148,7 +148,7 @@ ospf_route_match_add (struct vty *vty, struct route_map_index *index,
int
ospf_route_set_add (struct vty *vty, struct route_map_index *index,
- char *command, char *arg)
+ const char *command, char *arg)
{
int ret;
@@ -174,7 +174,7 @@ ospf_route_set_add (struct vty *vty, struct route_map_index *index,
/* Delete rip route map rule. */
int
ospf_route_set_delete (struct vty *vty, struct route_map_index *index,
- char *command, char *arg)
+ const char *command, char *arg)
{
int ret;
@@ -760,9 +760,11 @@ DEFUN (set_metric_type,
"OSPF[6] external type 2 metric\n")
{
if (strcmp (argv[0], "1") == 0)
- return ospf_route_set_add (vty, vty->index, "metric-type", "type-1");
+ return ospf_route_set_add (vty, vty->index, "metric-type",
+ (char *) "type-1");
if (strcmp (argv[0], "2") == 0)
- return ospf_route_set_add (vty, vty->index, "metric-type", "type-2");
+ return ospf_route_set_add (vty, vty->index, "metric-type",
+ (char *) "type-2");
return ospf_route_set_add (vty, vty->index, "metric-type", argv[0]);
}