[PATCH 2/3] dix: Shrink PropertyRec on LP64

Adam Jackson ajax at redhat.com
Tue Mar 8 11:13:47 PST 2011


size needn't be a long.  No change on ILP32 but, combined with the
previous change, 56 -> 40 bytes on LP64.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 include/propertyst.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/propertyst.h b/include/propertyst.h
index fd1148e..1edd11d 100644
--- a/include/propertyst.h
+++ b/include/propertyst.h
@@ -58,8 +58,8 @@ typedef struct _Property {
         struct _Property       *next;
 	ATOM 		propertyName;
 	ATOM		type;       /* ignored by server */
-	short		format;     /* format of data for swapping - 8,16,32 */
-	long		size;       /* size of data in (format/8) bytes */
+	uint32_t	format;     /* format of data for swapping - 8,16,32 */
+	uint32_t	size;       /* size of data in (format/8) bytes */
 	pointer         data;       /* private to client */
 	PrivateRec	*devPrivates;
 } PropertyRec;
-- 
1.7.3.5



More information about the xorg-devel mailing list