diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-05-06 15:56:40 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2012-05-06 15:56:40 +0000 |
commit | 5bb827c38bdc7c11019e98b8e161accbd98ee34f (patch) | |
tree | be7ff05f40449a99afdec3a98b16e9e418024cf4 /driver/xf86-video-neomagic/src/neo_video.c | |
parent | 5c4abd9a6d2a422981f3395bdcf8a013a8c13d79 (diff) |
Update to xf86-video-neomagic 1.2.6
Diffstat (limited to 'driver/xf86-video-neomagic/src/neo_video.c')
-rw-r--r-- | driver/xf86-video-neomagic/src/neo_video.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/driver/xf86-video-neomagic/src/neo_video.c b/driver/xf86-video-neomagic/src/neo_video.c index a9e1e25a1..0edae3099 100644 --- a/driver/xf86-video-neomagic/src/neo_video.c +++ b/driver/xf86-video-neomagic/src/neo_video.c @@ -99,7 +99,7 @@ NEOInitVideo(ScreenPtr pScreen) numAdaptors = 1; overlayAdaptors = &newAdaptor; } else { - newAdaptors = xalloc((numAdaptors + 1) + newAdaptors = malloc((numAdaptors + 1) * sizeof(XF86VideoAdaptorPtr*)); if (newAdaptors){ memcpy(newAdaptors, overlayAdaptors, @@ -114,7 +114,7 @@ NEOInitVideo(ScreenPtr pScreen) xf86XVScreenInit(pScreen, overlayAdaptors, numAdaptors); if (newAdaptors) - xfree(newAdaptors); + free(newAdaptors); } static XF86VideoEncodingRec NEOVideoEncodings[] = @@ -211,7 +211,7 @@ NEOSetupVideo(ScreenPtr pScreen) #ifdef DEBUG xf86DrvMsg(pScrn->scrnIndex,X_INFO,"NEOSetupVideo\n"); #endif - if ((overlayAdaptor = xcalloc(1, sizeof(XF86VideoAdaptorRec) + + if ((overlayAdaptor = calloc(1, sizeof(XF86VideoAdaptorRec) + sizeof(DevUnion) + sizeof(NEOPortRec))) == NULL){ return (NULL); @@ -918,7 +918,7 @@ NEOInitOffscreenImages(ScreenPtr pScreen) #ifdef DEBUG xf86DrvMsg(xf86Screens[pScreen->myNum]->scrnIndex,X_INFO,"NEOInitOffscreenImages\n"); #endif - if ((offscreenImages = xalloc(sizeof(XF86OffscreenImageRec))) == NULL){ + if ((offscreenImages = malloc(sizeof(XF86OffscreenImageRec))) == NULL){ return; } @@ -1017,19 +1017,19 @@ NEOAllocSurface(ScrnInfoPtr pScrn, int id, surface->width = width; surface->height = height; - if ((surface->pitches = xalloc(sizeof(int))) == NULL){ + if ((surface->pitches = malloc(sizeof(int))) == NULL){ xf86FreeOffscreenLinear(linear); return (BadAlloc); } - if ((surface->offsets = xalloc(sizeof(int))) == NULL){ - xfree(surface->pitches); + if ((surface->offsets = malloc(sizeof(int))) == NULL){ + free(surface->pitches); xf86FreeOffscreenLinear(linear); return (BadAlloc); } - if ((pPriv = xalloc(sizeof(NEOOffscreenRec))) == NULL){ - xfree(surface->pitches); - xfree(surface->offsets); + if ((pPriv = malloc(sizeof(NEOOffscreenRec))) == NULL){ + free(surface->pitches); + free(surface->offsets); xf86FreeOffscreenLinear(linear); return (BadAlloc); } @@ -1057,9 +1057,9 @@ NEOFreeSurface(XF86SurfacePtr surface) NEOStopSurface(surface); xf86FreeOffscreenLinear(pPriv->linear); - xfree(surface->pitches); - xfree(surface->offsets); - xfree(surface->devPrivate.ptr); + free(surface->pitches); + free(surface->offsets); + free(surface->devPrivate.ptr); return (Success); } |