Fix build on 64-bit systems
[cascardo/gnio.git] / test / test-tcp-client.c
index 9ef6560..771da64 100644 (file)
@@ -28,17 +28,17 @@ connect_callback (GObject *source, GAsyncResult *result, gpointer data)
 
        if ((count = g_output_stream_write (output, "GET / HTTP/1.0\r\n\r\n", 19, NULL, &error)) < 0) {
                g_warning (error->message);
-               return 1;
+               return;
        }
 
-       g_print ("wrote %d bytes\n", count);
+       g_print ("wrote %" G_GSSIZE_FORMAT " bytes\n", count);
 
        if ((count = g_input_stream_read (input, buffer, 512, NULL, &error)) < 0) {
                g_warning (error->message);
-               return 1;
+               return;
        }
 
-       g_print ("read %d bytes: %s\n", count, buffer);
+       g_print ("read %" G_GSSIZE_FORMAT " bytes: %s\n", count, buffer);
 }
 
 int main (int argc, char *argv[])