diff options
Diffstat (limited to 'src/xf86HyperPen.c')
-rw-r--r-- | src/xf86HyperPen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xf86HyperPen.c b/src/xf86HyperPen.c index 09526b6..292df86 100644 --- a/src/xf86HyperPen.c +++ b/src/xf86HyperPen.c @@ -913,7 +913,7 @@ static InputInfoPtr xf86HypAllocate(void) { InputInfoPtr pInfo = xf86AllocateInput(hypDrv, 0); - HyperPenDevicePtr priv = (HyperPenDevicePtr)xalloc(sizeof(HyperPenDeviceRec)); + HyperPenDevicePtr priv = (HyperPenDevicePtr)malloc(sizeof(HyperPenDeviceRec)); #if defined (sun) && !defined(i386) char *dev_name = getenv("HYPERPEN_DEV"); #endif @@ -937,7 +937,7 @@ xf86HypAllocate(void) #if defined(sun) && !defined(i386) if (dev_name) { - priv->hypDevice = (char *)xalloc(strlen(dev_name) + 1); + priv->hypDevice = (char *)alloc(strlen(dev_name) + 1); strcpy(priv->hypDevice, dev_name); ErrorF("xf86HypOpen port changed to '%s'\n", priv->hypDevice); } else { @@ -981,7 +981,7 @@ xf86HypUninit(InputDriverPtr drv, xf86HypProc(pInfo->dev, DEVICE_OFF); - xfree (priv); + free (priv); xf86DeleteInput(pInfo, 0); } @@ -1140,9 +1140,9 @@ xf86HypInit(InputDriverPtr drv, SetupProc_fail: if (priv) - xfree(priv); + free(priv); if (pInfo) - xfree(pInfo); + free(pInfo); return NULL; } |