aboutsummaryrefslogtreecommitdiff
path: root/console/input.c
diff options
context:
space:
mode:
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. */