aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xext/sleepuntil.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-06 18:48:27 +0000
committermarha <marha@users.sourceforge.net>2009-09-06 18:48:27 +0000
commita915739887477b28d924ecc8417ee107d125bd6c (patch)
treec02f315476b61892d1fd89182e18943dce8d6277 /xorg-server/Xext/sleepuntil.c
parent6f25a23db1df27e992c34f6fd4c82e83c44fc2e2 (diff)
downloadvcxsrv-a915739887477b28d924ecc8417ee107d125bd6c.tar.gz
vcxsrv-a915739887477b28d924ecc8417ee107d125bd6c.tar.bz2
vcxsrv-a915739887477b28d924ecc8417ee107d125bd6c.zip
Switched to xorg-server-1.6.99.900.tar.gz
Diffstat (limited to 'xorg-server/Xext/sleepuntil.c')
-rw-r--r--xorg-server/Xext/sleepuntil.c33
1 files changed, 10 insertions, 23 deletions
diff --git a/xorg-server/Xext/sleepuntil.c b/xorg-server/Xext/sleepuntil.c
index f8cedbe6e..2616a5e5b 100644
--- a/xorg-server/Xext/sleepuntil.c
+++ b/xorg-server/Xext/sleepuntil.c
@@ -77,14 +77,11 @@ static void SertafiedWakeupHandler(
pointer /* LastSelectMask */
);
-_X_EXPORT int
-ClientSleepUntil (client, revive, notifyFunc, closure)
- ClientPtr client;
- TimeStamp *revive;
- void (*notifyFunc)(
- ClientPtr /* client */,
- pointer /* closure */);
- pointer closure;
+int
+ClientSleepUntil (ClientPtr client,
+ TimeStamp *revive,
+ void (*notifyFunc)(ClientPtr, pointer),
+ pointer closure)
{
SertafiedPtr pRequest, pReq, pPrev;
@@ -96,7 +93,7 @@ ClientSleepUntil (client, revive, notifyFunc, closure)
SertafiedGeneration = serverGeneration;
BlockHandlerRegistered = FALSE;
}
- pRequest = (SertafiedPtr) xalloc (sizeof (SertafiedRec));
+ pRequest = xalloc (sizeof (SertafiedRec));
if (!pRequest)
return FALSE;
pRequest->pClient = client;
@@ -138,9 +135,7 @@ ClientSleepUntil (client, revive, notifyFunc, closure)
}
static void
-ClientAwaken (client, closure)
- ClientPtr client;
- pointer closure;
+ClientAwaken (ClientPtr client, pointer closure)
{
if (!client->clientGone)
AttendClient (client);
@@ -148,9 +143,7 @@ ClientAwaken (client, closure)
static int
-SertafiedDelete (value, id)
- pointer value;
- XID id;
+SertafiedDelete (pointer value, XID id)
{
SertafiedPtr pRequest = (SertafiedPtr)value;
SertafiedPtr pReq, pPrev;
@@ -172,10 +165,7 @@ SertafiedDelete (value, id)
}
static void
-SertafiedBlockHandler (data, wt, LastSelectMask)
- pointer data; /* unused */
- OSTimePtr wt; /* wait time */
- pointer LastSelectMask;
+SertafiedBlockHandler (pointer data, OSTimePtr wt, pointer LastSelectMask)
{
SertafiedPtr pReq, pNext;
unsigned long delay;
@@ -208,10 +198,7 @@ SertafiedBlockHandler (data, wt, LastSelectMask)
}
static void
-SertafiedWakeupHandler (data, i, LastSelectMask)
- pointer data;
- int i;
- pointer LastSelectMask;
+SertafiedWakeupHandler (pointer data, int i, pointer LastSelectMask)
{
SertafiedPtr pReq, pNext;
TimeStamp now;