From 4a3dbb926ae3f5410198d7cc4f4ebe4f62eebf05 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 25 Jul 2009 19:39:46 +0000 Subject: Added xorg-server-1.6.2.tar.gz --- xorg-server/Xext/xres.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'xorg-server/Xext/xres.c') diff --git a/xorg-server/Xext/xres.c b/xorg-server/Xext/xres.c index f444c4e69..bdc534c91 100644 --- a/xorg-server/Xext/xres.c +++ b/xorg-server/Xext/xres.c @@ -94,7 +94,7 @@ ProcXResQueryClients (ClientPtr client) scratch.resource_mask = RESOURCE_ID_MASK; if(client->swapped) { - register int n; + int n; swapl (&scratch.resource_base, n); swapl (&scratch.resource_mask, n); } @@ -133,9 +133,7 @@ ProcXResQueryClientResources (ClientPtr client) return BadValue; } - counts = xalloc((lastResourceType + 1) * sizeof(int)); - - memset(counts, 0, (lastResourceType + 1) * sizeof(int)); + counts = xcalloc(lastResourceType + 1, sizeof(int)); FindAllClientResources(clients[clientID], ResFindAllRes, counts); @@ -177,7 +175,7 @@ ProcXResQueryClientResources (ClientPtr client) scratch.count = counts[i]; if(client->swapped) { - register int n; + int n; swapl (&scratch.resource_type, n); swapl (&scratch.count, n); } @@ -301,10 +299,6 @@ ProcXResQueryClientPixmapBytes (ClientPtr client) return (client->noClientException); } - -static void -ResResetProc (ExtensionEntry *extEntry) { } - static int ProcResDispatch (ClientPtr client) { @@ -386,5 +380,5 @@ ResExtensionInit(INITARGS) { (void) AddExtension(XRES_NAME, 0, 0, ProcResDispatch, SProcResDispatch, - ResResetProc, StandardMinorOpcode); + NULL, StandardMinorOpcode); } -- cgit v1.2.3