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

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

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]