diff options
author | hasso <hasso> | 2004-10-12 20:50:58 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-10-12 20:50:58 +0000 |
commit | 39db97e4e02eae08a1e18528367b6e9b07eb6a93 (patch) | |
tree | 2fb3a0269f4f2fe235ef722e3ad9cc8e6005bb6c /zebra/zebra_vty.c | |
parent | 39ff11dc92d004b59d1ec786fd54b27111fee0b5 (diff) |
Some compiler warnings fixes and fix for bugzilla #119.
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r-- | zebra/zebra_vty.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 044448e1..ae4083ed 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -91,16 +91,16 @@ route_type_char (u_char type) /* General fucntion for static route. */ int -zebra_static_ipv4 (struct vty *vty, int add_cmd, - char *dest_str, char *mask_str, char *gate_str, - char *flag_str, char *distance_str) +zebra_static_ipv4 (struct vty *vty, int add_cmd, const char *dest_str, + const char *mask_str, const char *gate_str, + const char *flag_str, const char *distance_str) { int ret; u_char distance; struct prefix p; struct in_addr gate; struct in_addr mask; - char *ifname; + const char *ifname; u_char flag = 0; ret = str2prefix (dest_str, &p); @@ -754,7 +754,9 @@ vty_show_ip_route (struct vty *vty, struct route_node *rn, struct rib *rib) } } -#define SHOW_ROUTE_V4_HEADER "Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,%s I - ISIS, B - BGP, > - selected route, * - FIB route%s%s" +#define SHOW_ROUTE_V4_HEADER "Codes: K - kernel route, C - connected, " \ + "S - static, R - RIP, O - OSPF,%s I - ISIS, B - BGP, " \ + "> - selected route, * - FIB route%s%s" DEFUN (show_ip_route, show_ip_route_cmd, @@ -1114,8 +1116,9 @@ static_config_ipv4 (struct vty *vty) #ifdef HAVE_IPV6 /* General fucntion for IPv6 static route. */ int -static_ipv6_func (struct vty *vty, int add_cmd, char *dest_str, - char *gate_str, char *ifname, char *flag_str, char *distance_str) +static_ipv6_func (struct vty *vty, int add_cmd, const char *dest_str, + const char *gate_str, const char *ifname, + const char *flag_str, const char *distance_str) { int ret; u_char distance; |