diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-10-31 09:16:28 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-11-12 10:25:00 +1000 |
commit | 25315ee555dfeb96d9ed83064b1022ed852b612e (patch) | |
tree | c713281d6cd673051a09da86bae0b3e38ad791f6 /Xext | |
parent | 995ecfb51d4ab8197e4591d5c0957e08a0bd6a59 (diff) |
Xext: fix clang compiler warning
shm.c:1150:24: warning: equality comparison with extraneous parentheses
[-Wparentheses-equality]
if ((shmdesc->addr == ((char *) -1))) {
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/shm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/shm.c b/Xext/shm.c index b78791836..30f688af1 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -1147,7 +1147,7 @@ ProcShmAttachFd(ClientPtr client) fd, 0); close(fd); - if ((shmdesc->addr == ((char *) -1))) { + if (shmdesc->addr == ((char *) -1)) { free(shmdesc); return BadAccess; } @@ -1237,7 +1237,7 @@ ProcShmCreateSegment(ClientPtr client) MAP_SHARED, fd, 0); - if ((shmdesc->addr == ((char *) -1))) { + if (shmdesc->addr == ((char *) -1)) { close(fd); free(shmdesc); return BadAccess; |