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. --- console/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'console/input.c') diff --git a/console/input.c b/console/input.c index c6f99743..8e561fb9 100644 --- a/console/input.c +++ b/console/input.c @@ -87,7 +87,7 @@ void input_destroy (input_t input) DATALEN) or -1 and the error number in errno. If NONBLOCK is not zero, return with -1 and set errno to EWOULDBLOCK if operation would block for a long time. */ -ssize_t input_enqueue (input_t input, int nonblock, char *data, +ssize_t input_enqueue (input_t input, int nonblock, const char *data, size_t datalen) { error_t err = 0; @@ -154,7 +154,7 @@ ssize_t input_enqueue (input_t input, int nonblock, char *data, } else { - buffer = data; + buffer = (char*) data; buffer_size = datalen; } /* Prepare output buffer for iconv. */ -- cgit v1.2.3