move pSAREAPriv declaration to be C-compliant

This commit is contained in:
Brian Paul 2004-04-08 22:25:03 +00:00
parent 62d3309dc2
commit 01eab7c834

View file

@ -728,6 +728,7 @@ static GLboolean R128DRIScreenInit(DRIDriverContext *ctx)
R128DRIPtr pR128DRI;
int err, major, minor, patch;
drmVersionPtr version;
drm_r128_sarea_t *pSAREAPriv;
switch (ctx->bpp) {
case 8:
@ -884,7 +885,6 @@ static GLboolean R128DRIScreenInit(DRIDriverContext *ctx)
0,
info->backPitch * ctx->cpp * ctx->shared.virtualHeight );
drm_r128_sarea_t *pSAREAPriv;
pSAREAPriv = (drm_r128_sarea_t *)(((char*)ctx->pSAREA) +
sizeof(drm_sarea_t));
memset(pSAREAPriv, 0, sizeof(*pSAREAPriv));