From 8dc82a13a91f76b432f0e77abea6bde7c9abc68c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 21 Mar 2024 11:26:59 +0100 Subject: [PATCH] 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 Part-of: --- os/rpcauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }