[PATCH 8/8] dix: Define RESTYPE as unsigned int

Adam Jackson ajax at redhat.com
Mon Mar 7 08:28:18 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 080061f..6ca9a4b 100644
--- a/include/resource.h
+++ b/include/resource.h
@@ -56,7 +56,7 @@ SOFTWARE.
 
 /* classes for Resource routines */
 
-typedef unsigned long RESTYPE;
+typedef unsigned int RESTYPE;
 
 #define RC_VANILLA	((RESTYPE)0)
 #define RC_CACHED	((RESTYPE)1<<31)
-- 
1.7.3.5



More information about the xorg-devel mailing list