diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index a9201bd91..79751ff1b 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -53,6 +54,12 @@ static void destroy_jcon(struct json_connection *jcon) tal_free(jcon->log); } +/* FIXME: This, or something prettier (io_replan?) belong in ccan/io! */ +static UNNEEDED void adjust_io_write(struct io_conn *conn, ptrdiff_t delta) +{ + conn->plan[IO_OUT].arg.u1.cp += delta; +} + static void json_help(struct command *cmd, const char *buffer, const jsmntok_t *params);