[PATCH 1/3] dix: Fix ATOM typedef

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


unsigned long is needlessly large on LP64.  Use uint32_t instead.

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

diff --git a/include/misc.h b/include/misc.h
index 0717db6..386d295 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -79,6 +79,7 @@ OF THIS SOFTWARE.
 #include <X11/Xdefs.h>
 
 #include <stddef.h>
+#include <stdint.h>
 
 #ifndef MAXSCREENS
 #define MAXSCREENS	16
@@ -91,7 +92,7 @@ OF THIS SOFTWARE.
 #define EXTENSION_EVENT_BASE 64
 #define EXTENSION_BASE 128
 
-typedef unsigned long ATOM;
+typedef uint32_t ATOM;
 
 #ifndef TRUE
 #define TRUE 1
-- 
1.7.3.5



More information about the xorg-devel mailing list