From c6b8207342b44cc48c0e872bd4c142b99e8918a0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 13 Feb 2025 17:01:44 +0100 Subject: [PATCH] os: unexport AuthorizationIDOfClient() Not used by any modules, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- Xext/security.c | 1 + include/os.h | 2 -- os/client_priv.h | 1 + os/connection.c | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Xext/security.c b/Xext/security.c index df4fd922b..b0715e3df 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -35,6 +35,7 @@ in this Software without prior written authorization from The Open Group. #include "include/extinit_priv.h" #include "os/audit.h" #include "os/auth.h" +#include "os/client_priv.h" #include "os/osdep.h" #include "scrnintstr.h" diff --git a/include/os.h b/include/os.h index eab28747b..af8ffbb40 100644 --- a/include/os.h +++ b/include/os.h @@ -115,8 +115,6 @@ extern _X_EXPORT void ResetWellKnownSockets(void); extern _X_EXPORT void CloseWellKnownConnections(void); -extern _X_EXPORT XID AuthorizationIDOfClient(ClientPtr /*client */ ); - extern _X_EXPORT const char *ClientAuthorized(ClientPtr /*client */ , unsigned int /*proto_n */ , char * /*auth_proto */ , diff --git a/os/client_priv.h b/os/client_priv.h index abbda2b9d..a74c73fc8 100644 --- a/os/client_priv.h +++ b/os/client_priv.h @@ -34,5 +34,6 @@ const char *GetClientCmdName(struct _Client *client); const char *GetClientCmdArgs(struct _Client *client); Bool ClientIsLocal(struct _Client *client); +XID AuthorizationIDOfClient(struct _Client *client); #endif /* _XSERVER_DIX_CLIENT_PRIV_H */ diff --git a/os/connection.c b/os/connection.c index 997d06405..07d6cbe8a 100644 --- a/os/connection.c +++ b/os/connection.c @@ -97,6 +97,7 @@ SOFTWARE. #include "dix/dix_priv.h" #include "os/audit.h" #include "os/auth.h" +#include "os/client_priv.h" #include "os/osdep.h" #include "misc.h" /* for typedef of pointer */