Author: kelnos
Date: 2008-05-07 06:15:25 +0000 (Wed, 07 May 2008)
New Revision: 26934

Modified:
   xfconf/trunk/xfsettingsd/registry.c
Log:
fix byte order, put the byte order as a CARD8, not CARD32


Modified: xfconf/trunk/xfsettingsd/registry.c
===================================================================
--- xfconf/trunk/xfsettingsd/registry.c 2008-05-07 06:15:09 UTC (rev 26933)
+++ xfconf/trunk/xfsettingsd/registry.c 2008-05-07 06:15:25 UTC (rev 26934)
@@ -260,7 +260,11 @@
     buffer = NULL;
     pos = buffer = g_new0(guchar, buf_len);
 
-    *(CARD32 *)pos = LSBFirst;
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
+    *(CARD8 *)pos = LSBFirst;
+#else
+    *(CARD8 *)pos = MSBFirst;
+#endif
     pos +=4;
 
     *(CARD32 *)pos = registry->priv->serial++;

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to