[PATCH spice-gtk 1/4] gio-coroutine: Fix C inheritance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GConditionWaitSource should inherit from GSource so GSource
should be the first field.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 src/gio-coroutine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gio-coroutine.c b/src/gio-coroutine.c
index c866e15..1322f01 100644
--- a/src/gio-coroutine.c
+++ b/src/gio-coroutine.c
@@ -24,8 +24,8 @@
 
 typedef struct _GConditionWaitSource
 {
+    GSource parent; // this MUST be the first field
     GCoroutine *self;
-    GSource src;
     GConditionWaitFunc func;
     gpointer data;
 } GConditionWaitSource;
-- 
2.14.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]