summaryrefslogtreecommitdiff
path: root/dbe/midbe.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-03-28 01:21:00 +0000
committerAdam Jackson <ajax@nwnk.net>2006-03-28 01:21:00 +0000
commit7deaaa797cf8e7ca71e9b34fa6f413d1ed2b3dab (patch)
tree68207e778570383e7f4ace7d1ff8cea27bb67ce1 /dbe/midbe.c
parent7342dbe4b2108827eaf30993ceeecbd828da2290 (diff)
Big old pile of warning fixes.
Diffstat (limited to 'dbe/midbe.c')
-rw-r--r--dbe/midbe.c41
1 files changed, 15 insertions, 26 deletions
diff --git a/dbe/midbe.c b/dbe/midbe.c
index ef5140963..cdca272d3 100644
--- a/dbe/midbe.c
+++ b/dbe/midbe.c
@@ -57,6 +57,7 @@
#include "regionstr.h"
#include "gcstruct.h"
#include "inputstr.h"
+#include "midbe.h"
#include <stdio.h>
@@ -94,9 +95,7 @@ int dbeWindowPrivIndex = -1;
*****************************************************************************/
static Bool
-miDbeGetVisualInfo(pScreen, pScrVisInfo)
- ScreenPtr pScreen;
- XdbeScreenVisualInfo *pScrVisInfo;
+miDbeGetVisualInfo(ScreenPtr pScreen, XdbeScreenVisualInfo *pScrVisInfo)
{
register int i, j, k;
register int count;
@@ -158,10 +157,7 @@ miDbeGetVisualInfo(pScreen, pScrVisInfo)
*****************************************************************************/
static int
-miDbeAllocBackBufferName(pWin, bufId, swapAction)
- WindowPtr pWin;
- XID bufId;
- int swapAction;
+miDbeAllocBackBufferName(WindowPtr pWin, XID bufId, int swapAction)
{
ScreenPtr pScreen;
DbeWindowPrivPtr pDbeWindowPriv;
@@ -272,8 +268,7 @@ miDbeAllocBackBufferName(pWin, bufId, swapAction)
*****************************************************************************/
static void
-miDbeAliasBuffers(pDbeWindowPriv)
- DbeWindowPrivPtr pDbeWindowPriv;
+miDbeAliasBuffers(DbeWindowPrivPtr pDbeWindowPriv)
{
int i;
MiDbeWindowPrivPrivPtr pDbeWindowPrivPriv =
@@ -299,10 +294,7 @@ miDbeAliasBuffers(pDbeWindowPriv)
*****************************************************************************/
static int
-miDbeSwapBuffers(client, pNumWindows, swapInfo)
- ClientPtr client;
- int *pNumWindows;
- DbeSwapInfoPtr swapInfo;
+miDbeSwapBuffers(ClientPtr client, int *pNumWindows, DbeSwapInfoPtr swapInfo)
{
DbeScreenPrivPtr pDbeScreenPriv;
GCPtr pGC;
@@ -481,9 +473,7 @@ miDbeSwapBuffers(client, pNumWindows, swapInfo)
*****************************************************************************/
static void
-miDbeWinPrivDelete(pDbeWindowPriv, bufId)
- DbeWindowPrivPtr pDbeWindowPriv;
- XID bufId;
+miDbeWinPrivDelete(DbeWindowPrivPtr pDbeWindowPriv, XID bufId)
{
MiDbeWindowPrivPrivPtr pDbeWindowPrivPriv;
@@ -530,10 +520,7 @@ miDbeWinPrivDelete(pDbeWindowPriv, bufId)
*****************************************************************************/
static Bool
-miDbePositionWindow(pWin, x, y)
- WindowPtr pWin;
- int x;
- int y;
+miDbePositionWindow(WindowPtr pWin, int x, int y)
{
ScreenPtr pScreen;
DbeScreenPrivPtr pDbeScreenPriv;
@@ -771,8 +758,7 @@ miDbePositionWindow(pWin, x, y)
*****************************************************************************/
static void
-miDbeResetProc(pScreen)
- ScreenPtr pScreen;
+miDbeResetProc(ScreenPtr pScreen)
{
DbeScreenPrivPtr pDbeScreenPriv;
@@ -784,6 +770,11 @@ miDbeResetProc(pScreen)
} /* miDbeResetProc() */
+static void
+miDbeNopValidateBuffer(WindowPtr pWin, XID bufId, Bool dstbuffer)
+{
+}
+
/******************************************************************************
*
@@ -796,9 +787,7 @@ miDbeResetProc(pScreen)
*****************************************************************************/
Bool
-miDbeInit(pScreen, pDbeScreenPriv)
- ScreenPtr pScreen;
- DbeScreenPrivPtr pDbeScreenPriv;
+miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv)
{
/* Copy resource types created by DIX */
dbeDrawableResType = pDbeScreenPriv->dbeDrawableResType;
@@ -844,7 +833,7 @@ miDbeInit(pScreen, pDbeScreenPriv)
pDbeScreenPriv->WinPrivDelete = miDbeWinPrivDelete;
/* The mi implementation doesn't need buffer validation. */
- pDbeScreenPriv->ValidateBuffer = (void (*)())NoopDDA;
+ pDbeScreenPriv->ValidateBuffer = miDbeNopValidateBuffer;
return(TRUE);