mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
lightningd/msg_queue: rename msg_is_fd to msg_extract_fd
Suggested-by: Christian Decker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -18,7 +18,7 @@ struct io_plan *daemon_conn_write_next(struct io_conn *conn,
|
||||
{
|
||||
const u8 *msg = msg_dequeue(&dc->out);
|
||||
if (msg) {
|
||||
int fd = msg_is_fd(msg);
|
||||
int fd = msg_extract_fd(msg);
|
||||
if (fd >= 0)
|
||||
return io_send_fd(conn, fd, true,
|
||||
daemon_conn_write_next, dc);
|
||||
@@ -42,7 +42,7 @@ bool daemon_conn_sync_flush(struct daemon_conn *dc)
|
||||
|
||||
/* Flush existing messages. */
|
||||
while ((msg = msg_dequeue(&dc->out)) != NULL) {
|
||||
int fd = msg_is_fd(msg);
|
||||
int fd = msg_extract_fd(msg);
|
||||
if (fd >= 0) {
|
||||
if (!fdpass_send(io_conn_fd(dc->conn), fd))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user