summaryrefslogtreecommitdiff
path: root/mi/miscrinit.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-12-15 01:05:51 -0800
committerKeith Packard <keithp@keithp.com>2014-01-12 10:24:11 -0800
commit60014a4a98ff924ae7f6840781f768c1cc93bbab (patch)
treea956a03a6a7c87cac4d48fb95b66fec313d87fde /mi/miscrinit.c
parent93fa64e17d7bd600ebf18ecab85f5b2d17fe30ce (diff)
Replace 'pointer' type with 'void *'
This lets us stop using the 'pointer' typedef in Xdefs.h as 'pointer' is used throughout the X server for other things, and having duplicate names generates compiler warnings. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'mi/miscrinit.c')
-rw-r--r--mi/miscrinit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mi/miscrinit.c b/mi/miscrinit.c
index 4698b532f..6aed52f51 100644
--- a/mi/miscrinit.c
+++ b/mi/miscrinit.c
@@ -53,14 +53,14 @@ from The Open Group.
*/
typedef struct {
- pointer pbits; /* pointer to framebuffer */
+ void *pbits; /* pointer to framebuffer */
int width; /* delta to add to a framebuffer addr to move one row down */
} miScreenInitParmsRec, *miScreenInitParmsPtr;
/* this plugs into pScreen->ModifyPixmapHeader */
Bool
miModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth,
- int bitsPerPixel, int devKind, pointer pPixData)
+ int bitsPerPixel, int devKind, void *pPixData)
{
if (!pPixmap)
return FALSE;
@@ -135,7 +135,7 @@ Bool
miCreateScreenResources(ScreenPtr pScreen)
{
miScreenInitParmsPtr pScrInitParms;
- pointer value;
+ void *value;
pScrInitParms = (miScreenInitParmsPtr) pScreen->devPrivate;
@@ -161,7 +161,7 @@ miCreateScreenResources(ScreenPtr pScreen)
pScreen->rootDepth),
pScrInitParms->pbits))
return FALSE;
- value = (pointer) pPixmap;
+ value = (void *) pPixmap;
}
else {
value = pScrInitParms->pbits;
@@ -172,7 +172,7 @@ miCreateScreenResources(ScreenPtr pScreen)
}
Bool
-miScreenDevPrivateInit(ScreenPtr pScreen, int width, pointer pbits)
+miScreenDevPrivateInit(ScreenPtr pScreen, int width, void *pbits)
{
miScreenInitParmsPtr pScrInitParms;
@@ -185,7 +185,7 @@ miScreenDevPrivateInit(ScreenPtr pScreen, int width, pointer pbits)
return FALSE;
pScrInitParms->pbits = pbits;
pScrInitParms->width = width;
- pScreen->devPrivate = (pointer) pScrInitParms;
+ pScreen->devPrivate = (void *) pScrInitParms;
return TRUE;
}
@@ -199,11 +199,11 @@ static void
miSetScreenPixmap(PixmapPtr pPix)
{
if (pPix)
- pPix->drawable.pScreen->devPrivate = (pointer) pPix;
+ pPix->drawable.pScreen->devPrivate = (void *) pPix;
}
Bool
-miScreenInit(ScreenPtr pScreen, pointer pbits, /* pointer to screen bits */
+miScreenInit(ScreenPtr pScreen, void *pbits, /* pointer to screen bits */
int xsize, int ysize, /* in pixels */
int dpix, int dpiy, /* dots per inch */
int width, /* pixel width of frame buffer */