mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-20 13:34:26 +01:00
lightningd/connection: daemon_conn_send should be const.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user