mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
os: rpc: fix type mismatch
fix warning:
> ../os/rpcauth.c:159:16: warning: result of comparison of constant -1 with expression of type 'XID' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
> if (rpc_id == ~0L)
> ~~~~~~ ^ ~~~
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1431>
(cherry picked from commit 8dc82a13a9)
This commit is contained in:
committed by
Alan Coopersmith
parent
f31a3917ac
commit
a0554ea4a9
@@ -155,7 +155,7 @@ SecureRPCCheck(unsigned short data_length, const char *data,
|
||||
_X_HIDDEN void
|
||||
SecureRPCInit(void)
|
||||
{
|
||||
if (rpc_id == ~0L)
|
||||
if (rpc_id == (XID) ~0L)
|
||||
AddAuthorization(9, "SUN-DES-1", 0, (char *) 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user