diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2019-07-27 07:57:27 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2019-07-27 07:57:27 +0000 |
commit | d4a0bed4b91da9de86c311c7fef9a8aa9a6f500c (patch) | |
tree | a1b439049dee87bc951e190db93f5bbe8b43b0b5 /xserver/Xext/geext.c | |
parent | b6bc775539a31f663f9e22ce3ccaf0aa96adf3b6 (diff) |
Update to xserver 1.20.5. Tested by jsg@
Diffstat (limited to 'xserver/Xext/geext.c')
-rw-r--r-- | xserver/Xext/geext.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xserver/Xext/geext.c b/xserver/Xext/geext.c index 6312f248b..5009c081a 100644 --- a/xserver/Xext/geext.c +++ b/xserver/Xext/geext.c @@ -47,7 +47,6 @@ static const int version_requests[] = { /* Forward declarations */ static void SGEGenericEvent(xEvent *from, xEvent *to); -#define NUM_VERSION_REQUESTS (sizeof (version_requests) / sizeof (version_requests[0])) #define EXT_MASK(ext) ((ext) & 0x7F) /************************************************************/ @@ -98,7 +97,7 @@ static int (*ProcGEVector[GENumberRequests]) (ClientPtr) = { /************************************************************/ /* swapped request handlers */ /************************************************************/ -static int +static int _X_COLD SProcGEQueryVersion(ClientPtr client) { REQUEST(xGEQueryVersionReq); @@ -127,7 +126,7 @@ ProcGEDispatch(ClientPtr client) REQUEST(xGEReq); - if (pGEClient->major_version >= NUM_VERSION_REQUESTS) + if (pGEClient->major_version >= ARRAY_SIZE(version_requests)) return BadRequest; if (stuff->ReqType > version_requests[pGEClient->major_version]) return BadRequest; @@ -136,7 +135,7 @@ ProcGEDispatch(ClientPtr client) } /* dispatch swapped requests */ -static int +static int _X_COLD SProcGEDispatch(ClientPtr client) { REQUEST(xGEReq); @@ -159,7 +158,7 @@ GEResetProc(ExtensionEntry * extEntry) * written on the wire, this one calls the registered swap function to do the * work. */ -static void +static void _X_COLD SGEGenericEvent(xEvent *from, xEvent *to) { xGenericEvent *gefrom = (xGenericEvent *) from; |