[PATCH 1/2] Don't special-case allocation for the X server

Adam Jackson ajax at redhat.com
Tue Mar 15 12:50:31 PDT 2011


xserver uses malloc/free directly now, don't route through the Xalloc
wrappers.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 transport.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/transport.c b/transport.c
index 5131d99..84a2915 100644
--- a/transport.c
+++ b/transport.c
@@ -47,16 +47,11 @@ from The Open Group.
  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-
-#ifdef XSERV_t
-#include "os.h"
-#else
 #include <stdlib.h>
 #define xalloc(_size)		malloc(_size)
 #define xcalloc(_num,_size)	calloc(_num,_size)
 #define xrealloc(_ptr,_size)	realloc(_ptr,_size)
 #define xfree(_ptr)		free(_ptr)
-#endif
 
 #include "Xtransint.h"
 
-- 
1.7.2.2



More information about the xorg-devel mailing list