diff options
Diffstat (limited to 'proto')
-rw-r--r-- | proto/babel/babel.c | 4 | ||||
-rw-r--r-- | proto/babel/babel.h | 4 | ||||
-rw-r--r-- | proto/bgp/bgp.h | 4 | ||||
-rw-r--r-- | proto/mrt/mrt.h | 2 | ||||
-rw-r--r-- | proto/ospf/ospf.c | 4 | ||||
-rw-r--r-- | proto/ospf/ospf.h | 4 | ||||
-rw-r--r-- | proto/radv/packets.c | 4 | ||||
-rw-r--r-- | proto/radv/radv.h | 2 | ||||
-rw-r--r-- | proto/rip/rip.c | 4 | ||||
-rw-r--r-- | proto/rip/rip.h | 4 |
10 files changed, 18 insertions, 18 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c index 177ff3a3..a915e8fa 100644 --- a/proto/babel/babel.c +++ b/proto/babel/babel.c @@ -1874,7 +1874,7 @@ babel_get_attr(eattr *a, byte *buf, int buflen UNUSED) } void -babel_show_interfaces(struct proto *P, char *iff) +babel_show_interfaces(struct proto *P, const char *iff) { struct babel_proto *p = (void *) P; struct babel_iface *ifa = NULL; @@ -1912,7 +1912,7 @@ babel_show_interfaces(struct proto *P, char *iff) } void -babel_show_neighbors(struct proto *P, char *iff) +babel_show_neighbors(struct proto *P, const char *iff) { struct babel_proto *p = (void *) P; struct babel_iface *ifa = NULL; diff --git a/proto/babel/babel.h b/proto/babel/babel.h index 14765c60..e075024c 100644 --- a/proto/babel/babel.h +++ b/proto/babel/babel.h @@ -368,8 +368,8 @@ void babel_handle_update(union babel_msg *msg, struct babel_iface *ifa); void babel_handle_route_request(union babel_msg *msg, struct babel_iface *ifa); void babel_handle_seqno_request(union babel_msg *msg, struct babel_iface *ifa); -void babel_show_interfaces(struct proto *P, char *iff); -void babel_show_neighbors(struct proto *P, char *iff); +void babel_show_interfaces(struct proto *P, const char *iff); +void babel_show_neighbors(struct proto *P, const char *iff); void babel_show_entries(struct proto *P); void babel_show_routes(struct proto *P); diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 03b92bd8..dc63e13e 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -125,9 +125,9 @@ struct bgp_config { unsigned disable_after_error; /* Disable the protocol when error is detected */ u32 disable_after_cease; /* Disable it when cease is received, bitfield */ - char *password; /* Password used for MD5 authentication */ + const char *password; /* Password used for MD5 authentication */ net_addr *remote_range; /* Allowed neighbor range for dynamic BGP */ - char *dynamic_name; /* Name pattern for dynamic BGP */ + const char *dynamic_name; /* Name pattern for dynamic BGP */ int dynamic_name_digits; /* Minimum number of digits for dynamic names */ int check_link; /* Use iface link state for liveness detection */ int bfd; /* Use BFD for liveness detection */ diff --git a/proto/mrt/mrt.h b/proto/mrt/mrt.h index 4dfb1b19..4ff94c12 100644 --- a/proto/mrt/mrt.h +++ b/proto/mrt/mrt.h @@ -42,7 +42,7 @@ struct mrt_dump_data { const char *table_expr; struct rtable *table_ptr; const struct filter *filter; - char *filename; + const char *filename; }; struct mrt_peer_entry { diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 63ff9e56..29610f4a 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -791,7 +791,7 @@ ospf_reconfigure(struct proto *P, struct proto_config *CF) void -ospf_sh_neigh(struct proto *P, char *iff) +ospf_sh_neigh(struct proto *P, const char *iff) { struct ospf_proto *p = (struct ospf_proto *) P; struct ospf_iface *ifa = NULL; @@ -900,7 +900,7 @@ ospf_sh(struct proto *P) } void -ospf_sh_iface(struct proto *P, char *iff) +ospf_sh_iface(struct proto *P, const char *iff) { struct ospf_proto *p = (struct ospf_proto *) P; struct ospf_iface *ifa = NULL; diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index 8318ee95..d0286f72 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -990,9 +990,9 @@ static inline int oa_is_nssa(struct ospf_area *oa) void ospf_stop_gr_recovery(struct ospf_proto *p); -void ospf_sh_neigh(struct proto *P, char *iff); +void ospf_sh_neigh(struct proto *P, const char *iff); void ospf_sh(struct proto *P); -void ospf_sh_iface(struct proto *P, char *iff); +void ospf_sh_iface(struct proto *P, const char *iff); void ospf_sh_state(struct proto *P, int verbose, int reachable); void ospf_sh_lsadb(struct lsadb_show_data *ld); diff --git a/proto/radv/packets.c b/proto/radv/packets.c index 3139d321..5cd8b2de 100644 --- a/proto/radv/packets.c +++ b/proto/radv/packets.c @@ -173,8 +173,8 @@ radv_process_domain(struct radv_dnssl_config *cf) { /* Format of domain in search list is <size> <label> <size> <label> ... 0 */ - char *dom = cf->domain; - char *dom_end = dom; /* Just to */ + const char *dom = cf->domain; + const char *dom_end = dom; /* Just to */ u8 *dlen_save = &cf->dlen_first; uint len; diff --git a/proto/radv/radv.h b/proto/radv/radv.h index 2c8ad7d4..14d40f8a 100644 --- a/proto/radv/radv.h +++ b/proto/radv/radv.h @@ -119,7 +119,7 @@ struct radv_dnssl_config u16 lifetime_mult; /* Lifetime specified as multiple of max_ra_int */ u8 dlen_first; /* Length of first label in domain */ u8 dlen_all; /* Both dlen_ filled in radv_process_domain() */ - char *domain; /* Domain for DNS search list, in processed form */ + const char *domain; /* Domain for DNS search list, in processed form */ }; /* diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 25ee16fd..f02d5071 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -1208,7 +1208,7 @@ rip_get_attr(eattr *a, byte *buf, int buflen UNUSED) } void -rip_show_interfaces(struct proto *P, char *iff) +rip_show_interfaces(struct proto *P, const char *iff) { struct rip_proto *p = (void *) P; struct rip_iface *ifa = NULL; @@ -1246,7 +1246,7 @@ rip_show_interfaces(struct proto *P, char *iff) } void -rip_show_neighbors(struct proto *P, char *iff) +rip_show_neighbors(struct proto *P, const char *iff) { struct rip_proto *p = (void *) P; struct rip_iface *ifa = NULL; diff --git a/proto/rip/rip.h b/proto/rip/rip.h index 76294624..8d347000 100644 --- a/proto/rip/rip.h +++ b/proto/rip/rip.h @@ -221,8 +221,8 @@ void rip_withdraw_rte(struct rip_proto *p, net_addr *n, struct rip_neighbor *fro void rip_flush_table(struct rip_proto *p, struct rip_neighbor *n); struct rip_neighbor * rip_get_neighbor(struct rip_proto *p, ip_addr *a, struct rip_iface *ifa); void rip_update_bfd(struct rip_proto *p, struct rip_neighbor *n); -void rip_show_interfaces(struct proto *P, char *iff); -void rip_show_neighbors(struct proto *P, char *iff); +void rip_show_interfaces(struct proto *P, const char *iff); +void rip_show_neighbors(struct proto *P, const char *iff); /* packets.c */ void rip_send_request(struct rip_proto *p, struct rip_iface *ifa); |