Browse Source

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>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
d616dbbd44
  1. 1
      lightningd/connection.c
  2. 2
      lightningd/connection.h

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

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

Loading…
Cancel
Save