From 202fdce48fd8fb04778bd3c7e30a036a68b32ba2 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 16 Jun 2020 15:54:33 +0200 Subject: Convert cfgdir and proxy to use debugging --- config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.c') 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; } -- cgit v1.2.3