mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
plugins: update for new deprecation API where all fields are nicely wrapped.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -78,7 +78,11 @@ static struct command_result *json_connected(struct command *cmd,
|
||||
const char *buf,
|
||||
const jsmntok_t *params)
|
||||
{
|
||||
const jsmntok_t *idtok = json_get_member(buf, params, "id");
|
||||
const jsmntok_t *connecttok, *idtok;
|
||||
|
||||
connecttok = json_get_member(buf, params, "connect");
|
||||
assert(connecttok);
|
||||
idtok = json_get_member(buf, connecttok, "id");
|
||||
assert(idtok);
|
||||
plugin_log(cmd->plugin, LOG_INFORM, "%s connected",
|
||||
json_strdup(tmpctx, buf, idtok));
|
||||
|
||||
Reference in New Issue
Block a user