[Spice-devel] [PATCH spice-server 14/33] basic-event-loop: Use socket compatibility layer

Frediano Ziglio fziglio at redhat.com
Fri Dec 21 12:03:02 UTC 2018


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/tests/basic-event-loop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/tests/basic-event-loop.c b/server/tests/basic-event-loop.c
index 607a5a5e..76b0580e 100644
--- a/server/tests/basic-event-loop.c
+++ b/server/tests/basic-event-loop.c
@@ -98,7 +98,8 @@ static void base_timer_remove(SpiceTimer *timer)
 
 static SpiceWatch *base_watch_add(int fd, int event_mask, SpiceWatchFunc func, void *opaque)
 {
-    return base_core_interface.watch_add(&base_core_interface, fd, event_mask, func, opaque);
+    return base_core_interface.watch_add(&base_core_interface, SOCKET_FROM_INT(fd), event_mask,
+                                         func, opaque);
 }
 
 static void base_watch_update_mask(SpiceWatch *watch, int event_mask)
-- 
2.17.2



More information about the Spice-devel mailing list