mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Rusty Russell
parent
fa55e2cab0
commit
a3178b8177
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user