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 /conf | |
parent | a109056145a6bc8a6b498ecb6e309ebc143c8b3c (diff) |
Configuration strings are constant.
This is merely a const propagation. There was no problem in there.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/conf.h | 2 | ||||
-rw-r--r-- | conf/confbase.Y | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/conf.h b/conf/conf.h index 0dea4f94..34c6818d 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -27,7 +27,7 @@ struct config { list symbols; /* Configured symbols in config order */ int mrtdump_file; /* Configured MRTDump file (sysdep, fd in unix) */ - char *syslog_name; /* Name used for syslog (NULL -> no syslog) */ + const char *syslog_name; /* Name used for syslog (NULL -> no syslog) */ struct rtable_config *def_tables[NET_MAX]; /* Default routing tables for each network */ struct iface_patt *router_id_from; /* Configured list of router ID iface patterns */ diff --git a/conf/confbase.Y b/conf/confbase.Y index 75158927..8b22f236 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -60,7 +60,7 @@ CF_DECLS net_addr net; net_addr *net_ptr; struct symbol *s; - char *t; + const char *t; struct rtable_config *r; struct channel_config *cc; struct f_inst *x; |