diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-03-21 11:26:59 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-03-21 22:57:40 +0000 |
commit | 8dc82a13a91f76b432f0e77abea6bde7c9abc68c (patch) | |
tree | 466ca760ff5440c7ec41749c372fdd7b7fb3d123 | |
parent | f361931035c79e98a0659abff1a4ae8c16884ee4 (diff) |
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>
-rw-r--r-- | os/rpcauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rpcauth.c b/os/rpcauth.c index 9209021e0..c531a54e8 100644 --- a/os/rpcauth.c +++ b/os/rpcauth.c @@ -156,7 +156,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); } |