diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-16 15:54:33 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-16 15:54:33 +0200 |
commit | 202fdce48fd8fb04778bd3c7e30a036a68b32ba2 (patch) | |
tree | 80045d42e0248acbb5c22e46d79d40c49160357a /config.c | |
parent | 7b2240a7a9387068f8da0f9bfeac90ec27034878 (diff) |
Convert cfgdir and proxy to use debugging
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |