summaryrefslogtreecommitdiff
path: root/dbe
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
parent7342dbe4b2108827eaf30993ceeecbd828da2290 (diff)
Big old pile of warning fixes.
Diffstat (limited to 'dbe')
-rw-r--r--dbe/dbe.c93
-rw-r--r--dbe/midbe.c41
2 files changed, 44 insertions, 90 deletions
diff --git a/dbe/dbe.c b/dbe/dbe.c
index 50a318191..9a040578e 100644
--- a/dbe/dbe.c
+++ b/dbe/dbe.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xserver/xorg/dbe/dbe.c,v 1.5 2005/07/03 07:01:17 daniels Exp $ */
+/* $XdotOrg: xserver/xorg/dbe/dbe.c,v 1.6 2006/02/10 22:00:21 anholt Exp $ */
/* $Xorg: dbe.c,v 1.3 2000/08/17 19:48:16 cpqbld Exp $ */
/******************************************************************************
*
@@ -100,10 +100,7 @@ static Bool firstRegistrationPass = TRUE;
*****************************************************************************/
void
-DbeValidateBuffer(pWin, drawID, dstbuf)
- WindowPtr pWin;
- XID drawID;
- Bool dstbuf;
+DbeValidateBuffer(WindowPtr pWin, XID drawID, Bool dstbuf)
{
DbeScreenPrivPtr pDbeScreenPriv = DBE_SCREEN_PRIV_FROM_WINDOW(pWin);
if (pDbeScreenPriv->ValidateBuffer)
@@ -122,9 +119,7 @@ DbeValidateBuffer(pWin, drawID, dstbuf)
*****************************************************************************/
void
-DbeRegisterFunction(pScreen, funct)
- ScreenPtr pScreen;
- Bool (*funct)();
+DbeRegisterFunction(ScreenPtr pScreen, Bool (*funct) (/* ??? */))
{
int i;
@@ -158,8 +153,7 @@ DbeRegisterFunction(pScreen, funct)
*
*****************************************************************************/
static DbeWindowPrivPtr
-DbeAllocWinPriv(pScreen)
- ScreenPtr pScreen;
+DbeAllocWinPriv(ScreenPtr pScreen)
{
DbeWindowPrivPtr pDbeWindowPriv;
DbeScreenPrivPtr pDbeScreenPriv;
@@ -228,7 +222,7 @@ DbeFallbackAllocWinPriv(pScreen)
*****************************************************************************/
static int
-DbeAllocWinPrivPrivIndex()
+DbeAllocWinPrivPrivIndex(void)
{
return winPrivPrivCount++;
@@ -248,10 +242,7 @@ DbeAllocWinPrivPrivIndex()
*****************************************************************************/
static Bool
-DbeAllocWinPrivPriv(pScreen, index, amount)
- register ScreenPtr pScreen;
- int index;
- unsigned int amount;
+DbeAllocWinPrivPriv(register ScreenPtr pScreen, int index, unsigned int amount)
{
DbeScreenPrivPtr pDbeScreenPriv;
unsigned int oldamount;
@@ -302,9 +293,7 @@ DbeAllocWinPrivPriv(pScreen, index, amount)
*****************************************************************************/
static void
-DbeStubScreen(pDbeScreenPriv, nStubbedScreens)
- DbeScreenPrivPtr pDbeScreenPriv;
- int *nStubbedScreens;
+DbeStubScreen(DbeScreenPrivPtr pDbeScreenPriv, int *nStubbedScreens)
{
/* Stub DIX. */
pDbeScreenPriv->SetupBackgroundPainter = NULL;
@@ -351,8 +340,7 @@ DbeStubScreen(pDbeScreenPriv, nStubbedScreens)
*****************************************************************************/
static int
-ProcDbeGetVersion(client)
- ClientPtr client;
+ProcDbeGetVersion(ClientPtr client)
{
/* REQUEST(xDbeGetVersionReq); */
xDbeGetVersionReply rep;
@@ -403,8 +391,7 @@ ProcDbeGetVersion(client)
*****************************************************************************/
static int
-ProcDbeAllocateBackBufferName(client)
- ClientPtr client;
+ProcDbeAllocateBackBufferName(ClientPtr client)
{
REQUEST(xDbeAllocateBackBufferNameReq);
WindowPtr pWin;
@@ -638,8 +625,7 @@ ProcDbeAllocateBackBufferName(client)
*****************************************************************************/
static int
-ProcDbeDeallocateBackBufferName(client)
- ClientPtr client;
+ProcDbeDeallocateBackBufferName(ClientPtr client)
{
REQUEST(xDbeDeallocateBackBufferNameReq);
DbeWindowPrivPtr pDbeWindowPriv;
@@ -710,8 +696,7 @@ ProcDbeDeallocateBackBufferName(client)
*****************************************************************************/
static int
-ProcDbeSwapBuffers(client)
- ClientPtr client;
+ProcDbeSwapBuffers(ClientPtr client)
{
REQUEST(xDbeSwapBuffersReq);
WindowPtr pWin;
@@ -835,8 +820,7 @@ ProcDbeSwapBuffers(client)
*****************************************************************************/
static int
-ProcDbeBeginIdiom(client)
- ClientPtr client;
+ProcDbeBeginIdiom(ClientPtr client)
{
/* REQUEST(xDbeBeginIdiomReq); */
DbeScreenPrivPtr pDbeScreenPriv;
@@ -879,8 +863,7 @@ ProcDbeBeginIdiom(client)
*****************************************************************************/
static int
-ProcDbeGetVisualInfo(client)
- ClientPtr client;
+ProcDbeGetVisualInfo(ClientPtr client)
{
REQUEST(xDbeGetVisualInfoReq);
DbeScreenPrivPtr pDbeScreenPriv;
@@ -1056,8 +1039,7 @@ ProcDbeGetVisualInfo(client)
*****************************************************************************/
static int
-ProcDbeGetBackBufferAttributes(client)
- ClientPtr client;
+ProcDbeGetBackBufferAttributes(ClientPtr client)
{
REQUEST(xDbeGetBackBufferAttributesReq);
xDbeGetBackBufferAttributesReply rep;
@@ -1106,8 +1088,7 @@ ProcDbeGetBackBufferAttributes(client)
*****************************************************************************/
static int
-ProcDbeDispatch(client)
- ClientPtr client;
+ProcDbeDispatch(ClientPtr client)
{
REQUEST(xReq);
@@ -1162,8 +1143,7 @@ ProcDbeDispatch(client)
*****************************************************************************/
static int
-SProcDbeGetVersion(client)
- ClientPtr client;
+SProcDbeGetVersion(ClientPtr client)
{
REQUEST(xDbeGetVersionReq);
register int n;
@@ -1199,8 +1179,7 @@ SProcDbeGetVersion(client)
*****************************************************************************/
static int
-SProcDbeAllocateBackBufferName(client)
- ClientPtr client;
+SProcDbeAllocateBackBufferName(ClientPtr client)
{
REQUEST(xDbeAllocateBackBufferNameReq);
register int n;
@@ -1235,8 +1214,7 @@ SProcDbeAllocateBackBufferName(client)
*****************************************************************************/
static int
-SProcDbeDeallocateBackBufferName(client)
- ClientPtr client;
+SProcDbeDeallocateBackBufferName(ClientPtr client)
{
REQUEST (xDbeDeallocateBackBufferNameReq);
register int n;
@@ -1274,8 +1252,7 @@ SProcDbeDeallocateBackBufferName(client)
*****************************************************************************/
static int
-SProcDbeSwapBuffers(client)
- ClientPtr client;
+SProcDbeSwapBuffers(ClientPtr client)
{
REQUEST(xDbeSwapBuffersReq);
register int i, n;
@@ -1323,8 +1300,7 @@ SProcDbeSwapBuffers(client)
*****************************************************************************/
static int
-SProcDbeBeginIdiom(client)
- ClientPtr client;
+SProcDbeBeginIdiom(ClientPtr client)
{
REQUEST(xDbeBeginIdiomReq);
register int n;
@@ -1353,8 +1329,7 @@ SProcDbeBeginIdiom(client)
*****************************************************************************/
static int
-SProcDbeGetVisualInfo(client)
- ClientPtr client;
+SProcDbeGetVisualInfo(ClientPtr client)
{
REQUEST(xDbeGetVisualInfoReq);
register int n;
@@ -1388,8 +1363,7 @@ SProcDbeGetVisualInfo(client)
*****************************************************************************/
static int
-SProcDbeGetBackBufferAttributes(client)
- ClientPtr client;
+SProcDbeGetBackBufferAttributes(ClientPtr client)
{
REQUEST (xDbeGetBackBufferAttributesReq);
register int n;
@@ -1415,8 +1389,7 @@ SProcDbeGetBackBufferAttributes(client)
*****************************************************************************/
static int
-SProcDbeDispatch(client)
- ClientPtr client;
+SProcDbeDispatch(ClientPtr client)
{
REQUEST(xReq);
@@ -1470,9 +1443,7 @@ SProcDbeDispatch(client)
*****************************************************************************/
static Bool
-DbeSetupBackgroundPainter(pWin, pGC)
- WindowPtr pWin;
- GCPtr pGC;
+DbeSetupBackgroundPainter(WindowPtr pWin, GCPtr pGC)
{
pointer gcvalues[4];
int ts_x_origin, ts_y_origin;
@@ -1545,9 +1516,7 @@ DbeSetupBackgroundPainter(pWin, pGC)
*
*****************************************************************************/
static int
-DbeDrawableDelete(pDrawable, id)
- pointer pDrawable;
- XID id;
+DbeDrawableDelete(pointer pDrawable, XID id)
{
return(Success);
@@ -1566,9 +1535,7 @@ DbeDrawableDelete(pDrawable, id)
*
*****************************************************************************/
static int
-DbeWindowPrivDelete(pDbeWinPriv, id)
- pointer pDbeWinPriv;
- XID id;
+DbeWindowPrivDelete(pointer pDbeWinPriv, XID id)
{
DbeScreenPrivPtr pDbeScreenPriv;
DbeWindowPrivPtr pDbeWindowPriv = (DbeWindowPrivPtr)pDbeWinPriv;
@@ -1675,8 +1642,7 @@ DbeWindowPrivDelete(pDbeWinPriv, id)
*
*****************************************************************************/
static void
-DbeResetProc(extEntry)
- ExtensionEntry *extEntry;
+DbeResetProc(ExtensionEntry *extEntry)
{
int i;
ScreenPtr pScreen;
@@ -1731,8 +1697,7 @@ DbeResetProc(extEntry)
*****************************************************************************/
static Bool
-DbeDestroyWindow(pWin)
- WindowPtr pWin;
+DbeDestroyWindow(WindowPtr pWin)
{
DbeScreenPrivPtr pDbeScreenPriv;
DbeWindowPrivPtr pDbeWindowPriv;
@@ -1814,7 +1779,7 @@ DbeDestroyWindow(pWin)
*****************************************************************************/
void
-DbeExtensionInit()
+DbeExtensionInit(void)
{
ExtensionEntry *extEntry;
register int i, j;
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);