[PATCH 3/8] dix: Shrink PropertyRec on LP64
Adam Jackson
ajax at redhat.com
Mon Mar 7 08:28:13 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..190d2c9 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 */
+ unsigned int format; /* format of data for swapping - 8,16,32 */
+ unsigned int 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