diff options
author | Keith Packard <keithp@keithp.com> | 2015-06-22 09:36:08 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-12-28 12:54:40 +0100 |
commit | 68dd0b52e13c844d662192654fb10cb993257a59 (patch) | |
tree | a97ab98a06147cd5fb194063a9984dc3973fba55 /nx-X11/programs/Xserver/mi/miscrinit.c | |
parent | e9f44221b2520a1d894b3c125269b5d10438453b (diff) | |
download | nx-libs-68dd0b52e13c844d662192654fb10cb993257a59.tar.gz nx-libs-68dd0b52e13c844d662192654fb10cb993257a59.tar.bz2 nx-libs-68dd0b52e13c844d662192654fb10cb993257a59.zip |
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>
Rebased against NX: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/mi/miscrinit.c')
-rw-r--r-- | nx-X11/programs/Xserver/mi/miscrinit.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/mi/miscrinit.c b/nx-X11/programs/Xserver/mi/miscrinit.c index ae9b6c2ee..78e2af5a4 100644 --- a/nx-X11/programs/Xserver/mi/miscrinit.c +++ b/nx-X11/programs/Xserver/mi/miscrinit.c @@ -56,7 +56,7 @@ 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; @@ -71,7 +71,7 @@ miModifyPixmapHeader(pPixmap, width, height, depth, bitsPerPixel, devKind, int depth; int bitsPerPixel; int devKind; - pointer pPixData; + void *pPixData; { if (!pPixmap) return FALSE; @@ -150,7 +150,7 @@ miCreateScreenResources(pScreen) ScreenPtr pScreen; { miScreenInitParmsPtr pScrInitParms; - pointer value; + void * value; pScrInitParms = (miScreenInitParmsPtr)pScreen->devPrivate; @@ -174,7 +174,7 @@ miCreateScreenResources(pScreen) PixmapBytePad(pScrInitParms->width, pScreen->rootDepth), pScrInitParms->pbits)) return FALSE; - value = (pointer)pPixmap; + value = (void *)pPixmap; } else { @@ -189,7 +189,7 @@ Bool miScreenDevPrivateInit(pScreen, width, pbits) register ScreenPtr pScreen; int width; - pointer pbits; + void * pbits; { miScreenInitParmsPtr pScrInitParms; @@ -202,7 +202,7 @@ miScreenDevPrivateInit(pScreen, width, pbits) return FALSE; pScrInitParms->pbits = pbits; pScrInitParms->width = width; - pScreen->devPrivate = (pointer)pScrInitParms; + pScreen->devPrivate = (void *)pScrInitParms; return TRUE; } @@ -210,7 +210,7 @@ Bool miScreenInit(pScreen, pbits, xsize, ysize, dpix, dpiy, width, rootDepth, numDepths, depths, rootVisual, numVisuals, visuals) register ScreenPtr pScreen; - pointer pbits; /* pointer to screen bits */ + void * pbits; /* pointer to screen bits */ int xsize, ysize; /* in pixels */ int dpix, dpiy; /* dots per inch */ int width; /* pixel width of frame buffer */ @@ -296,8 +296,8 @@ miScreenInit(pScreen, pbits, xsize, ysize, dpix, dpiy, width, pScreen->SendGraphicsExpose = miSendGraphicsExpose; pScreen->BlockHandler = (ScreenBlockHandlerProcPtr)NoopDDA; pScreen->WakeupHandler = (ScreenWakeupHandlerProcPtr)NoopDDA; - pScreen->blockData = (pointer)0; - pScreen->wakeupData = (pointer)0; + pScreen->blockData = (void *)0; + pScreen->wakeupData = (void *)0; pScreen->MarkWindow = miMarkWindow; pScreen->MarkOverlappedWindows = miMarkOverlappedWindows; pScreen->ChangeSaveUnder = miChangeSaveUnder; @@ -368,5 +368,5 @@ miSetScreenPixmap(pPix) PixmapPtr pPix; { if (pPix) - pPix->drawable.pScreen->devPrivate = (pointer)pPix; + pPix->drawable.pScreen->devPrivate = (void *)pPix; } |