aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xext/sleepuntil.c
diff options
context:
space:
mode:
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;