mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
lightningd/connection: daemon_conn_send should be const.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a57013997d
commit
38b68d478f
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user