mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
subd: automatically detect if callback frees subd.
This involves a tricky callback internally, but far less error-prone. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
5a256c724a
commit
0b953b86fe
@@ -9,7 +9,7 @@
|
||||
#include <lightningd/peer_control.h>
|
||||
#include <lightningd/subd.h>
|
||||
|
||||
static bool ping_reply(struct subd *subd, const u8 *msg, const int *fds,
|
||||
static void ping_reply(struct subd *subd, const u8 *msg, const int *fds,
|
||||
struct command *cmd)
|
||||
{
|
||||
u16 totlen;
|
||||
@@ -33,7 +33,6 @@ static bool ping_reply(struct subd *subd, const u8 *msg, const int *fds,
|
||||
json_object_end(response);
|
||||
command_success(cmd, response);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void json_dev_ping(struct command *cmd,
|
||||
|
||||
Reference in New Issue
Block a user