diff options
author | Adam Jackson <[email protected]> | 2004-12-27 20:31:56 +0000 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2004-12-27 20:31:56 +0000 |
commit | c3eaa17b37ef83d43a4de211c1b4f616b3bc0a3d (patch) | |
tree | b1cee126821cce46d6d1b86dbe8a5b9e4c6e27ce /src/mesa/drivers/dri/s3v/s3v_screen.c | |
parent | 99edafd4e87fdfb53a46d10d497250a9ba1fa91b (diff) |
Get s3v building with a minimum of warnings.
Diffstat (limited to 'src/mesa/drivers/dri/s3v/s3v_screen.c')
-rw-r--r-- | src/mesa/drivers/dri/s3v/s3v_screen.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/s3v/s3v_screen.c b/src/mesa/drivers/dri/s3v/s3v_screen.c index e558d5b4f3a..810232fec47 100644 --- a/src/mesa/drivers/dri/s3v/s3v_screen.c +++ b/src/mesa/drivers/dri/s3v/s3v_screen.c @@ -6,8 +6,6 @@ #include "s3v_vb.h" #include "s3v_dri.h" -#include "mem.h" - s3vScreenPtr s3vCreateScreen( __DRIscreenPrivate *sPriv ) { s3vScreenPtr s3vScreen; @@ -25,7 +23,7 @@ s3vScreenPtr s3vCreateScreen( __DRIscreenPrivate *sPriv ) s3vScreen->regionCount = 4; /* Magic number. Can we fix this? */ - s3vScreen->regions = Xmalloc(s3vScreen->regionCount * + s3vScreen->regions = _mesa_malloc(s3vScreen->regionCount * sizeof(s3vRegion)); DEBUG(("sPriv->fd = %i\nvDRIPriv->dmaBufHandle = %x\n", sPriv->fd, vDRIPriv->dmaBufHandle)); |