diff options
author | Adam Jackson <ajax@redhat.com> | 2010-06-23 13:28:55 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-01-20 21:08:17 -0500 |
commit | a1d885fdd67503a442b348626d2eddf6d22419e8 (patch) | |
tree | 63e34a244b85a8620bd5581d966c265b4d1c1392 | |
parent | cb61cf5c99004ba3c76b504220c6728b5f2d2de6 (diff) |
resource: Fix indentation
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | dix/resource.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/dix/resource.c b/dix/resource.c index f558ed27f..26d2c72aa 100644 --- a/dix/resource.c +++ b/dix/resource.c @@ -881,21 +881,21 @@ LegalNewID(XID id, ClientPtr client) #ifdef PANORAMIX XID minid, maxid; - if (!noPanoramiXExtension) { - minid = client->clientAsMask | (client->index ? - SERVER_BIT : SERVER_MINID); - maxid = (clientTable[client->index].fakeID | RESOURCE_ID_MASK) + 1; - if ((id >= minid) && (id <= maxid)) - return TRUE; - } + if (!noPanoramiXExtension) { + minid = client->clientAsMask | (client->index ? + SERVER_BIT : SERVER_MINID); + maxid = (clientTable[client->index].fakeID | RESOURCE_ID_MASK) + 1; + if ((id >= minid) && (id <= maxid)) + return TRUE; + } #endif /* PANORAMIX */ - if (client->clientAsMask == (id & ~RESOURCE_ID_MASK)) - { - rc = dixLookupResourceByClass(&val, id, RC_ANY, serverClient, - DixGetAttrAccess); - return rc == BadValue; - } - return FALSE; + if (client->clientAsMask == (id & ~RESOURCE_ID_MASK)) + { + rc = dixLookupResourceByClass(&val, id, RC_ANY, serverClient, + DixGetAttrAccess); + return rc == BadValue; + } + return FALSE; } int |