param: remove old callback code

Cleaned up remaining code. Reduced comment noise. Reverted
macro names back to the original.

Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
Mark Beckwith
2018-08-15 10:16:02 -05:00
committed by Rusty Russell
parent fa55e2cab0
commit a3178b8177
17 changed files with 189 additions and 320 deletions

View File

@@ -99,7 +99,7 @@ static void json_rhash(struct command *cmd,
struct sha256 *secret;
if (!param(cmd, buffer, params,
p_req_tal("secret", json_tok_sha256, &secret),
p_req("secret", json_tok_sha256, &secret),
NULL))
return;
@@ -189,7 +189,7 @@ static void json_help(struct command *cmd,
const jsmntok_t *cmdtok;
if (!param(cmd, buffer, params,
p_opt_tal("command", json_tok_tok, &cmdtok),
p_opt("command", json_tok_tok, &cmdtok),
NULL))
return;