summaryrefslogtreecommitdiff
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@jmq.cz>2020-04-08 22:25:15 +0200
committerMaria Matejka <mq@ucw.cz>2020-04-09 15:37:14 +0200
commitfd9f0c0640fd02a26b96b4f9d3cbbffbb6544a84 (patch)
tree3cfac115f49d41f3d62d41c4ddfffe50f2c381a4 /nest/protocol.h
parenta109056145a6bc8a6b498ecb6e309ebc143c8b3c (diff)
Configuration strings are constant.
This is merely a const propagation. There was no problem in there.
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index e4ec7fa2..e97e59dd 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -115,8 +115,8 @@ struct proto_config {
struct protocol *protocol; /* Protocol */
struct proto *proto; /* Instance we've created */
struct proto_config *parent; /* Parent proto_config for dynamic protocols */
- char *name;
- char *dsc;
+ const char *name;
+ const char *dsc;
int class; /* SYM_PROTO or SYM_TEMPLATE */
u8 net_type; /* Protocol network type (NET_*), 0 for undefined */
u8 disabled; /* Protocol enabled/disabled by default */
@@ -171,7 +171,7 @@ struct proto {
struct rte_src *main_source; /* Primary route source */
struct iface *vrf; /* Related VRF instance, NULL if global */
- char *name; /* Name of this instance (== cf->name) */
+ const char *name; /* Name of this instance (== cf->name) */
u32 debug; /* Debugging flags */
u32 mrtdump; /* MRTDump flags */
uint active_channels; /* Number of active channels */
@@ -245,7 +245,7 @@ struct proto {
};
struct proto_spec {
- void *ptr;
+ const void *ptr;
int patt;
};