lightningd/connection: daemon_conn_send should be const.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-03-18 05:15:52 +10:30
parent a57013997d
commit 38b68d478f
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void daemon_conn_init(tal_t *ctx, struct daemon_conn *dc, int fd,
io_new_conn(ctx, fd, daemon_conn_start, dc);
}
void daemon_conn_send(struct daemon_conn *dc, u8 *msg)
void daemon_conn_send(struct daemon_conn *dc, const u8 *msg)
{
msg_enqueue(&dc->out, msg);
io_wake(dc);

View File

@ -44,7 +44,7 @@ void daemon_conn_init(tal_t *ctx, struct daemon_conn *dc, int fd,
/**
* daemon_conn_send - Enqueue an outgoing message to be sent
*/
void daemon_conn_send(struct daemon_conn *dc, u8 *msg);
void daemon_conn_send(struct daemon_conn *dc, const u8 *msg);
/**
* daemon_conn_write_next - Continue writing from the msg-queue