[Spice-devel] [spice-gtk PATCH v2 3/5] tests: read8_cb expects GMainLoop as user_data

Victor Toso victortoso at redhat.com
Tue May 19 07:34:35 PDT 2015


---
 tests/pipe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/pipe.c b/tests/pipe.c
index 841cb77..ead8c99 100644
--- a/tests/pipe.c
+++ b/tests/pipe.c
@@ -179,7 +179,7 @@ test_pipe_write16read8(Fixture *f, gconstpointer user_data)
     g_output_stream_write_async(f->op1, "0123456789abcdef", 16, G_PRIORITY_DEFAULT,
                                 f->cancellable, write_cb, f->loop);
     g_input_stream_read_async(f->ip2, f->buf, 8, G_PRIORITY_DEFAULT,
-                              f->cancellable, read8_cb, GINT_TO_POINTER(8));
+                              f->cancellable, read8_cb, f->loop);
 
     g_main_loop_run (f->loop);
 
@@ -193,7 +193,7 @@ test_pipe_write8read16(Fixture *f, gconstpointer user_data)
     g_output_stream_write_async(f->op1, "01234567", 8, G_PRIORITY_DEFAULT,
                                 f->cancellable, write_cb, f->loop);
     g_input_stream_read_async(f->ip2, f->buf, 16, G_PRIORITY_DEFAULT,
-                              f->cancellable, read8_cb, GINT_TO_POINTER(8));
+                              f->cancellable, read8_cb, f->loop);
 
     g_main_loop_run (f->loop);
 
-- 
2.4.1



More information about the Spice-devel mailing list