X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=src%2Flibcaptive%2Fsandbox%2Fserver-CaptiveIOChannel.c;h=c09481d6606cd71fa130b88d9db394606c71dd6b;hb=a2dd38f86df22c46ae18f3ad7d9850eaacb02b92;hp=70ce0d76ebc3453b013f4bbaebc329056df78d96;hpb=81bf71e705762b42af90c6db2178ef4360bd5f49;p=captive.git diff --git a/src/libcaptive/sandbox/server-CaptiveIOChannel.c b/src/libcaptive/sandbox/server-CaptiveIOChannel.c index 70ce0d7..c09481d 100644 --- a/src/libcaptive/sandbox/server-CaptiveIOChannel.c +++ b/src/libcaptive/sandbox/server-CaptiveIOChannel.c @@ -114,7 +114,7 @@ GIOStatus erriostatus; buffer_corba->_release=TRUE; erriostatus=g_io_channel_read_chars(servant->image_iochannel, - buffer_corba->_buffer, /* buf */ + (gchar *)buffer_corba->_buffer, /* buf */ count, /* count */ &bytes_read, /* bytes_read */ NULL); /* error */ @@ -141,7 +141,7 @@ static void impl_Captive_CaptiveIOChannel_write(impl_POA_Captive_CaptiveIOChanne gsize bytes_written; if (G_IO_STATUS_NORMAL!=g_io_channel_write_chars(servant->image_iochannel, - buffer_corba->_buffer, /* buf */ + (const gchar *)buffer_corba->_buffer, /* buf */ buffer_corba->_length, /* count */ &bytes_written, /* bytes_written */ NULL) /* error */