diff options
author | Jeremy Huddleston <jeremy@yuffie.local> | 2008-01-05 03:14:07 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@yuffie.local> | 2008-01-05 03:17:27 -0800 |
commit | 7d226d6a251cb90765be2b50a1973986c5b7605b (patch) | |
tree | 13e5eb5ab41ea32dea1a9cc089d20d9eae08690b /hw/xquartz/applewm.c | |
parent | 11967dce11cd953d123d53bb3389aa257c5158e8 (diff) |
XQuartz: Cleanup for strict-prototyping
Also fixed DarwinEQEnqueue to match changes to the callback
And also use dpmsstubs.c rather than copying the code into darwin.c
(cherry picked from commit 4c5c30a4beb7a427b00b18097f548876ad3c11d7)
Diffstat (limited to 'hw/xquartz/applewm.c')
-rw-r--r-- | hw/xquartz/applewm.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c index 72dca28e7..c460ec6ae 100644 --- a/hw/xquartz/applewm.c +++ b/hw/xquartz/applewm.c @@ -264,8 +264,7 @@ WMFreeEvents (data, id) } static int -ProcAppleWMSelectInput (client) - register ClientPtr client; +ProcAppleWMSelectInput (register ClientPtr client) { REQUEST(xAppleWMSelectInputReq); WMEventPtr pEvent, pNewEvent, *pHead; @@ -479,13 +478,11 @@ ProcAppleWMSetFrontProcess( } static int -ProcAppleWMSetWindowLevel( - register ClientPtr client -) +ProcAppleWMSetWindowLevel(register ClientPtr client) { REQUEST(xAppleWMSetWindowLevelReq); WindowPtr pWin; - int errno; + int err; REQUEST_SIZE_MATCH(xAppleWMSetWindowLevelReq); @@ -497,9 +494,9 @@ ProcAppleWMSetWindowLevel( return BadValue; } - errno = appleWMProcs->SetWindowLevel(pWin, stuff->level); - if (errno != Success) { - return errno; + err = appleWMProcs->SetWindowLevel(pWin, stuff->level); + if (err != Success) { + return err; } return (client->noClientException); |