plugins: don't keep redundant jsonrpc pointer.

We have ld already, just use that in the one place we need.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-02-04 21:25:42 +10:30
parent dabdefefae
commit c506d42679
4 changed files with 5 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ struct plugin;
* Create a new plugins context.
*/
struct plugins *plugins_new(const tal_t *ctx, struct log_book *log_book,
struct jsonrpc *rpc, struct lightningd *ld);
struct lightningd *ld);
/**
* Initialize the registered plugins.