From d616dbbd44a24c8e2c3ebe6db012512e2b41b4b4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 20 Mar 2017 07:02:44 +1030 Subject: [PATCH] lightningd/connection: remove conn_fd field. io_conn_fd(conn) will give it to you anyway. Signed-off-by: Rusty Russell --- lightningd/connection.c | 1 - lightningd/connection.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lightningd/connection.c b/lightningd/connection.c index 9366108d1..2f23854a2 100644 --- a/lightningd/connection.c +++ b/lightningd/connection.c @@ -69,7 +69,6 @@ void daemon_conn_init(tal_t *ctx, struct daemon_conn *dc, int fd, dc->ctx = ctx; dc->msg_in = NULL; msg_queue_init(&dc->out, dc->ctx); - dc->conn_fd = fd; dc->msg_queue_cleared_cb = NULL; io_new_conn(ctx, fd, daemon_conn_start, dc); } diff --git a/lightningd/connection.h b/lightningd/connection.h index e40ec45a5..3ebc57529 100644 --- a/lightningd/connection.h +++ b/lightningd/connection.h @@ -17,7 +17,7 @@ struct daemon_conn { /* Queue of outgoing messages */ struct msg_queue out; - int conn_fd; + /* Underlying connection */ struct io_conn *conn; /* Callback for incoming messages */