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>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-21 11:26:59 +01:00 committed by Marge Bot
parent f361931035
commit 8dc82a13a9

View File

@ -156,7 +156,7 @@ SecureRPCCheck(unsigned short data_length, const char *data,
_X_HIDDEN void _X_HIDDEN void
SecureRPCInit(void) SecureRPCInit(void)
{ {
if (rpc_id == ~0L) if (rpc_id == (XID) ~0L)
AddAuthorization(9, "SUN-DES-1", 0, (char *) 0); AddAuthorization(9, "SUN-DES-1", 0, (char *) 0);
} }