diff options
author | hasso <hasso> | 2004-10-08 08:36:38 +0200 |
---|---|---|
committer | hasso <hasso> | 2004-10-08 08:36:38 +0200 |
commit | 8a676be30c275bcbe1a3de08c0c942a606caef2e (patch) | |
tree | c2202db7df836073b542e49c5f579062ee8b6d57 /ripd/rip_zebra.c | |
parent | Only warning left is the known lvalue problem in ripng_nexthop.c. (diff) | |
download | frr-8a676be30c275bcbe1a3de08c0c942a606caef2e.tar.xz frr-8a676be30c275bcbe1a3de08c0c942a606caef2e.zip |
There is no warnings here any more.
Diffstat (limited to 'ripd/rip_zebra.c')
-rw-r--r-- | ripd/rip_zebra.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ripd/rip_zebra.c b/ripd/rip_zebra.c index 437e3c642..229fb33ae 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]) |