From ff3961ad2920ba674272b4f842f4456ed685a4a7 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sun, 24 Jul 2016 18:08:02 +0200 Subject: conf: add handler argument to line-handler --- modules/account/account.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/account/account.c') diff --git a/modules/account/account.c b/modules/account/account.c index 9cd4235..c70a216 100644 --- a/modules/account/account.c +++ b/modules/account/account.c @@ -104,9 +104,10 @@ static int account_write_template(const char *file) * * @return 0 if success, otherwise errorcode */ -static int line_handler(const struct pl *addr) +static int line_handler(const struct pl *addr, void *arg) { char buf[512]; + (void)arg; (void)pl_strcpy(addr, buf, sizeof(buf)); @@ -143,7 +144,7 @@ static int account_read_file(void) return err; } - err = conf_parse(file, line_handler); + err = conf_parse(file, line_handler, NULL); if (err) return err; -- cgit v1.2.3