From 46bc6335c53acc3f8f472d470b7c05e61675f5eb Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 6 Mar 2025 16:46:56 +0100 Subject: [PATCH] dix: make CLIENT_BITS() macro private Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dix/resource_priv.h | 3 +++ include/resource.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dix/resource_priv.h b/dix/resource_priv.h index 4fb85afb4..5c2509db7 100644 --- a/dix/resource_priv.h +++ b/dix/resource_priv.h @@ -16,6 +16,9 @@ */ #define SERVER_BIT (Mask)0x40000000 /* use illegal bit */ +/* extract the client mask from an XID */ +#define CLIENT_BITS(id) ((id) & RESOURCE_CLIENT_MASK) + /* * @brief retrieve client that owns given window * diff --git a/include/resource.h b/include/resource.h index 4dc7893ae..1d2e84f01 100644 --- a/include/resource.h +++ b/include/resource.h @@ -107,8 +107,6 @@ extern _X_EXPORT unsigned int ResourceClientBits(void); #define RESOURCE_ID_MASK ((1 << CLIENTOFFSET) - 1) /* client field */ #define RESOURCE_CLIENT_MASK (((1 << ResourceClientBits()) - 1) << CLIENTOFFSET) -/* extract the client mask from an XID */ -#define CLIENT_BITS(id) ((id) & RESOURCE_CLIENT_MASK) #ifdef INVALID #undef INVALID /* needed on HP/UX */