summaryrefslogtreecommitdiff
path: root/ripd/rip_zebra.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-10-08 06:36:38 +0000
committerhasso <hasso>2004-10-08 06:36:38 +0000
commit8a676be30c275bcbe1a3de08c0c942a606caef2e (patch)
treec2202db7df836073b542e49c5f579062ee8b6d57 /ripd/rip_zebra.c
parent7a1d583c02253c53605f310d1afcc9f1c8e15b7b (diff)
There is no warnings here any more.
Diffstat (limited to 'ripd/rip_zebra.c')
-rw-r--r--ripd/rip_zebra.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ripd/rip_zebra.c b/ripd/rip_zebra.c
index 437e3c64..229fb33a 100644
--- a/ripd/rip_zebra.c
+++ b/ripd/rip_zebra.c
@@ -164,14 +164,14 @@ rip_routemap_set (int type, char *name)
}
void
-rip_redistribute_metric_set (int type, int metric)
+rip_redistribute_metric_set (int type, unsigned int metric)
{
rip->route_map[type].metric_config = 1;
rip->route_map[type].metric = metric;
}
int
-rip_metric_unset (int type,int metric)
+rip_metric_unset (int type, unsigned int metric)
{
#define DONT_CARE_METRIC_RIP 17
if (metric != DONT_CARE_METRIC_RIP &&
@@ -201,7 +201,7 @@ rip_routemap_unset (int type,char *name)
static struct {
int type;
int str_min_len;
- char *str;
+ const char *str;
} redist_type[] = {
{ZEBRA_ROUTE_KERNEL, 1, "kernel"},
{ZEBRA_ROUTE_CONNECT, 1, "connected"},
@@ -647,8 +647,8 @@ int
config_write_rip_redistribute (struct vty *vty, int config_mode)
{
int i;
- char *str[] = { "system", "kernel", "connected", "static", "rip",
- "ripng", "ospf", "ospf6", "isis", "bgp"};
+ const char *str[] = { "system", "kernel", "connected", "static", "rip",
+ "ripng", "ospf", "ospf6", "isis", "bgp"};
for (i = 0; i < ZEBRA_ROUTE_MAX; i++)
if (i != zclient->redist_default && zclient->redist[i])