[Spice-devel] [spice-common PATCH 2/3] ppc: Fix quic magic endianess

Lukas Venhoda lvenhoda at redhat.com
Thu Jun 18 10:50:27 PDT 2015


Quic magic would have to be converted when sending to BE client.
This ensures, that both client and server always have the same quick magic.
---
 common/quic.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/quic.c b/common/quic.c
index 16290d4..498b9cc 100644
--- a/common/quic.c
+++ b/common/quic.c
@@ -35,7 +35,8 @@
 //#define RLE_PRED_3
 #define QUIC_RGB

-#define QUIC_MAGIC (*(uint32_t *)"QUIC")
+/* ASCII "QUIC" */
+#define QUIC_MAGIC 0x43495551
 #define QUIC_VERSION_MAJOR 0U
 #define QUIC_VERSION_MINOR 1U
 #define QUIC_VERSION ((QUIC_VERSION_MAJOR << 16) | (QUIC_VERSION_MAJOR & 0xffff))
--
2.4.3



More information about the Spice-devel mailing list