From f5fb7c713ea443469406a691e60a6f4567a4cb75 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Jan 2022 00:32:29 +0100 Subject: Fix const warnings Now that the RPCs have const, this forces us cleaning our const-meant functions. --- libpipe/dgram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpipe/dgram.c') diff --git a/libpipe/dgram.c b/libpipe/dgram.c index 30695f1e..96731ff2 100644 --- a/libpipe/dgram.c +++ b/libpipe/dgram.c @@ -25,9 +25,9 @@ /* See the definition of struct pipe_class in "pipe.h" for documentation. */ -static error_t +static error_t dgram_write (struct pq *pq, void *source, - char *data, size_t data_len, size_t *amount) + const char *data, size_t data_len, size_t *amount) { struct packet *packet = pq_queue (pq, PACKET_TYPE_DATA, source); if (!packet) -- cgit v1.2.3