diff options
Diffstat (limited to 'xorg-server/Xext/saver.c')
-rw-r--r-- | xorg-server/Xext/saver.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/xorg-server/Xext/saver.c b/xorg-server/Xext/saver.c index feab972e2..0bdcb8b94 100644 --- a/xorg-server/Xext/saver.c +++ b/xorg-server/Xext/saver.c @@ -110,10 +110,6 @@ static void SScreenSaverNotifyEvent ( xScreenSaverNotifyEvent * /* to */ ); -static void ScreenSaverResetProc ( - ExtensionEntry * /* extEntry */ - ); - static RESTYPE SuspendType; /* resource type for suspension records */ typedef struct _ScreenSaverSuspension *ScreenSaverSuspensionPtr; @@ -232,7 +228,8 @@ MakeScreenPrivate ( ScreenPtr /* pScreen */ ); -static DevPrivateKey ScreenPrivateKey = &ScreenPrivateKey; +static int ScreenPrivateKeyIndex; +static DevPrivateKey ScreenPrivateKey = &ScreenPrivateKeyIndex; #define GetScreenPrivate(s) ((ScreenSaverScreenPrivatePtr) \ dixLookupPrivate(&(s)->devPrivates, ScreenPrivateKey)) @@ -269,20 +266,13 @@ ScreenSaverExtensionInit(INITARGS) if (AttrType && EventType && SuspendType && (extEntry = AddExtension(ScreenSaverName, ScreenSaverNumberEvents, 0, ProcScreenSaverDispatch, SProcScreenSaverDispatch, - ScreenSaverResetProc, StandardMinorOpcode))) + NULL, StandardMinorOpcode))) { ScreenSaverEventBase = extEntry->eventBase; EventSwapVector[ScreenSaverEventBase] = (EventSwapPtr) SScreenSaverNotifyEvent; } } -/*ARGSUSED*/ -static void -ScreenSaverResetProc (extEntry) -ExtensionEntry *extEntry; -{ -} - static void CheckScreenPrivate (pScreen) ScreenPtr pScreen; @@ -751,10 +741,10 @@ ScreenSaverHandle (pScreen, xstate, force) static int ProcScreenSaverQueryVersion (client) - register ClientPtr client; + ClientPtr client; { xScreenSaverQueryVersionReply rep; - register int n; + int n; REQUEST_SIZE_MATCH (xScreenSaverQueryVersionReq); rep.type = X_Reply; @@ -772,11 +762,11 @@ ProcScreenSaverQueryVersion (client) static int ProcScreenSaverQueryInfo (client) - register ClientPtr client; + ClientPtr client; { REQUEST(xScreenSaverQueryInfoReq); xScreenSaverQueryInfoReply rep; - register int n, rc; + int n, rc; ScreenSaverStuffPtr pSaver; DrawablePtr pDraw; CARD32 lastInput; @@ -849,7 +839,7 @@ ProcScreenSaverQueryInfo (client) static int ProcScreenSaverSelectInput (client) - register ClientPtr client; + ClientPtr client; { REQUEST(xScreenSaverSelectInputReq); DrawablePtr pDraw; |