summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-09-24 13:30:39 -0400
committerpommicket <pommicket@gmail.com>2022-09-24 13:38:12 -0400
commitdfde7bff94240172d3a2a037ec0b77871b71bf56 (patch)
treea813f5df460300235e88595c018687a5c743be19 /config.c
parent8965fd92759602c1c92c025344c1bb801bc15043 (diff)
fix go-to-error when build_dir != .
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 4190fe9..3ed27d8 100644
--- a/config.c
+++ b/config.c
@@ -172,7 +172,7 @@ typedef struct {
} OptionU16;
typedef struct {
char const *name;
- const char *control;
+ char *control;
size_t buf_size;
bool per_language;
} OptionString;
@@ -232,7 +232,7 @@ void config_read(Ted *ted, char const *filename, int pass) {
// core options
// (these go at the start so they don't need to be re-computed each time)
- const Settings *nullset = NULL;
+ Settings *nullset = NULL;
OptionBool const options_bool[] = {
{"auto-indent", &nullset->auto_indent, true},
{"auto-add-newline", &nullset->auto_add_newline, true},