[PATCH acecad 3/7] Remove libc wrapper usage for xcalloc, xfree, etc.

Peter Hutterer peter.hutterer at who-t.net
Thu Sep 9 17:56:37 PDT 2010


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
CC: Giuseppe Bilotta <giuseppe.bilotta at gmail.org>
---
 src/acecad.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/acecad.c b/src/acecad.c
index 7ca6c2d..e5312ae 100644
--- a/src/acecad.c
+++ b/src/acecad.c
@@ -333,7 +333,7 @@ static InputInfoPtr
 AceCadPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
 {
     InputInfoPtr local = xf86AllocateInput(drv, 0);
-    AceCadPrivatePtr priv = xcalloc (1, sizeof(AceCadPrivateRec));
+    AceCadPrivatePtr priv = calloc (1, sizeof(AceCadPrivateRec));
     int speed;
     int msgtype;
     char *s;
@@ -488,7 +488,7 @@ SetupProc_fail:
     if ((priv) && (priv->buffer))
         XisbFree (priv->buffer);
     if (priv) {
-        xfree (priv);
+        free (priv);
 	if (local)
 		local->private = NULL;
     }
-- 
1.7.2.3



More information about the xorg-devel mailing list