<div dir="ltr">Hi<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 4:34 PM, Victor Toso <span dir="ltr"><<a href="mailto:victortoso@redhat.com" target="_blank">victortoso@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 tests/pipe.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/tests/pipe.c b/tests/pipe.c<br>
index 841cb77..ead8c99 100644<br>
--- a/tests/pipe.c<br>
+++ b/tests/pipe.c<br>
@@ -179,7 +179,7 @@ test_pipe_write16read8(Fixture *f, gconstpointer user_data)<br>
     g_output_stream_write_async(f->op1, "0123456789abcdef", 16, G_PRIORITY_DEFAULT,<br>
                                 f->cancellable, write_cb, f->loop);<br>
     g_input_stream_read_async(f->ip2, f->buf, 8, G_PRIORITY_DEFAULT,<br>
-                              f->cancellable, read8_cb, GINT_TO_POINTER(8));<br>
+                              f->cancellable, read8_cb, f->loop);<br>
<br>
     g_main_loop_run (f->loop);<br>
<br>
@@ -193,7 +193,7 @@ test_pipe_write8read16(Fixture *f, gconstpointer user_data)<br>
     g_output_stream_write_async(f->op1, "01234567", 8, G_PRIORITY_DEFAULT,<br>
                                 f->cancellable, write_cb, f->loop);<br>
     g_input_stream_read_async(f->ip2, f->buf, 16, G_PRIORITY_DEFAULT,<br>
-                              f->cancellable, read8_cb, GINT_TO_POINTER(8));<br>
+                              f->cancellable, read8_cb, f->loop);<br>
<br></blockquote><div><br></div><div>loop is not used though. I think my intention was to have a generic read_cb instead of hardcoding the 8 bytes read.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     g_main_loop_run (f->loop);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.4.1<br>
<br>
_______________________________________________<br>
Spice-devel mailing list<br>
<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Marc-André Lureau</div>
</div></div>