[Spice-devel] [PATCH 04/14] reds: Put PipeItem first in VDIReadBuf

Jonathon Jongsma jjongsma at redhat.com
Thu Apr 7 22:11:17 UTC 2016


From: Christophe Fergeau <cfergeau at redhat.com>

This is a bit artificial as this is not a real 'PipeItem', but it will
allow us to make it use the common base class for refcounted pipe items.
---
 server/reds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/reds.c b/server/reds.c
index 792e45f..1c37627 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -167,9 +167,9 @@ struct ChannelSecurityOptions {
 };
 
 typedef struct VDIReadBuf {
-    RedCharDeviceVDIPort *dev;
     RingItem link;
     uint32_t refs;
+    RedCharDeviceVDIPort *dev;
 
     int len;
     uint8_t data[SPICE_AGENT_MAX_DATA_SIZE];
-- 
2.4.11



More information about the Spice-devel mailing list