aboutsummaryrefslogtreecommitdiff
path: root/console/input.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:32:29 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 00:43:09 +0100
commitf5fb7c713ea443469406a691e60a6f4567a4cb75 (patch)
treeb16d979915b5ad7e32ffe77ca5f5006dc639a16e /console/input.c
parentdd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff)
downloadhurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.gz
hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.bz2
hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.zip
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant functions.
Diffstat (limited to 'console/input.c')
-rw-r--r--console/input.c4
1 files changed, 2 insertions, 2 deletions
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. */