summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 15:54:33 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 15:54:33 +0200
commit202fdce48fd8fb04778bd3c7e30a036a68b32ba2 (patch)
tree80045d42e0248acbb5c22e46d79d40c49160357a /config.c
parent7b2240a7a9387068f8da0f9bfeac90ec27034878 (diff)
Convert cfgdir and proxy to use debugging
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.c b/config.c
index 4ccd3c3..47d0572 100644
--- a/config.c
+++ b/config.c
@@ -258,7 +258,7 @@ out:
/* Returns true if theres data left to parse in buf */
bool
config_parse_line(struct cfg *cfg, char **buf, struct cfg_key_value_map *kvmap,
- int *rkey, union cfg_value *rvalue)
+ int *rkey, const char **rkeyname, union cfg_value *rvalue)
{
char *line, *tmp, *key;
int i;
@@ -346,12 +346,14 @@ config_parse_line(struct cfg *cfg, char **buf, struct cfg_key_value_map *kvmap,
}
*rkey = kvmap[i].key_value;
+ *rkeyname = kvmap[i].key_name;
return true;
}
out:
fprintf(stderr, "Invalid line\n");
*rkey = 0;
+ *rkeyname = NULL;
return true;
}