[PATCH 3/3] dix: Define RESTYPE as uint32_t

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


long is needlessly long on LP64.

Before:
   text	   data	    bss	    dec	    hex	filename
1833242	  69920	  49696	1952858	 1dcc5a	hw/vfb/Xvfb

After:
   text	   data	    bss	    dec	    hex	filename
1832426	  69920	  49504	1951850	 1dc86a	hw/vfb/Xvfb

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

diff --git a/include/resource.h b/include/resource.h
index 763aa99..772b7b8 100644
--- a/include/resource.h
+++ b/include/resource.h
@@ -56,7 +56,7 @@ SOFTWARE.
 
 /* classes for Resource routines */
 
-typedef unsigned long RESTYPE;
+typedef uint32_t RESTYPE;
 
 #define RC_VANILLA	((RESTYPE)0)
 #define RC_CACHED	((RESTYPE)1<<31)
-- 
1.7.3.5



More information about the xorg-devel mailing list