lightningd/connection: remove conn_fd field.

io_conn_fd(conn) will give it to you anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-03-20 07:02:44 +10:30
parent bdc41f00f3
commit d616dbbd44
2 changed files with 1 additions and 2 deletions

View File

@ -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);
}

View File

@ -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 */