From eb1a5b16c7e1b50a5dc120d3c2d9c4fb2c991a7e Mon Sep 17 00:00:00 2001 From: Mark Beckwith Date: Tue, 21 Aug 2018 09:12:50 -0500 Subject: [PATCH] param: return type consistency We were returning a pointer but expecting a bool. Signed-off-by: Mark Beckwith --- lightningd/param.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightningd/param.c b/lightningd/param.c index bb11317e9..a20c00938 100644 --- a/lightningd/param.c +++ b/lightningd/param.c @@ -45,7 +45,7 @@ static bool make_callback(struct command *cmd, return def->cbx(cmd, def->name, buffer, tok, def->arg); } -static struct param *post_check(struct command *cmd, struct param *params) +static bool post_check(struct command *cmd, struct param *params) { struct param *first = params; struct param *last = first + tal_count(params); @@ -56,11 +56,11 @@ static struct param *post_check(struct command *cmd, struct param *params) command_fail(cmd, JSONRPC2_INVALID_PARAMS, "missing required parameter: '%s'", first->name); - return NULL; + return false; } first++; } - return params; + return true; } static bool parse_by_position(struct command *cmd,