diff options
author | Maria Matejka <mq@jmq.cz> | 2020-04-08 22:25:15 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2020-04-09 15:37:14 +0200 |
commit | fd9f0c0640fd02a26b96b4f9d3cbbffbb6544a84 (patch) | |
tree | 3cfac115f49d41f3d62d41c4ddfffe50f2c381a4 /proto/babel | |
parent | a109056145a6bc8a6b498ecb6e309ebc143c8b3c (diff) |
Configuration strings are constant.
This is merely a const propagation. There was no problem in there.
Diffstat (limited to 'proto/babel')
-rw-r--r-- | proto/babel/babel.c | 4 | ||||
-rw-r--r-- | proto/babel/babel.h | 4 |
2 files changed, 4 insertions, 4 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); |