Warnings fixes
This commit is contained in:
parent
ee18f17330
commit
fc63ede018
|
@ -426,7 +426,7 @@ xed_document_input_stream_read (GInputStream *stream,
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
n = read_line (dstream, buffer + read, space_left);
|
n = read_line (dstream, (void *) ((gsize) buffer + read), space_left);
|
||||||
read += n;
|
read += n;
|
||||||
space_left -= n;
|
space_left -= n;
|
||||||
} while (space_left > 0 && n != 0 && dstream->priv->bytes_partial == 0);
|
} while (space_left > 0 && n != 0 && dstream->priv->bytes_partial == 0);
|
||||||
|
@ -451,7 +451,7 @@ xed_document_input_stream_read (GInputStream *stream,
|
||||||
|
|
||||||
newline = get_new_line (dstream);
|
newline = get_new_line (dstream);
|
||||||
|
|
||||||
memcpy (buffer + read, newline, newline_size);
|
memcpy ((void *) ((gsize) buffer + read), newline, newline_size);
|
||||||
|
|
||||||
read += newline_size;
|
read += newline_size;
|
||||||
dstream->priv->newline_added = TRUE;
|
dstream->priv->newline_added = TRUE;
|
||||||
|
|
|
@ -153,7 +153,7 @@ try_convert (GCharsetConverter *converter,
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
res = g_converter_convert (G_CONVERTER (converter),
|
res = g_converter_convert (G_CONVERTER (converter),
|
||||||
inbuf + nread,
|
(void *) ((gsize) inbuf + nread),
|
||||||
inbuf_size - nread,
|
inbuf_size - nread,
|
||||||
out + nwritten,
|
out + nwritten,
|
||||||
out_size - nwritten,
|
out_size - nwritten,
|
||||||
|
|
Loading…
Reference in New Issue