fix warnings from gcc compilation with my mad CFLAGS

This commit is contained in:
Benjamin Otte
2009-06-29 18:24:08 +02:00
parent 4b8ad50fc4
commit afd63c3281
12 changed files with 119 additions and 106 deletions

View File

@@ -48,7 +48,7 @@ writer_thread (gpointer user_data)
g_usleep (10);
offset = 0;
while (offset < sizeof (DATA))
while (offset < (gssize) sizeof (DATA))
{
nwrote = g_output_stream_write (out, DATA + offset,
sizeof (DATA) - offset,
@@ -86,7 +86,7 @@ reader_thread (gpointer user_data)
do
{
total = 0;
while (total < sizeof (DATA))
while (total < (gssize) sizeof (DATA))
{
nread = g_input_stream_read (in, buf + total, sizeof (buf) - total,
reader_cancel, &err);