From e621081fa32d6243ecdab37fa6a02ca4b02d2cde Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 28 Feb 2024 18:51:58 +0100 Subject: [PATCH] os: unexport EnableLocalUser() and DisableLocalUser() these aren't used by module, so no need to export them. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- include/os.h | 6 ------ os/access.c | 11 +++++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/include/os.h b/include/os.h index 41b638bbb..af838359d 100644 --- a/include/os.h +++ b/include/os.h @@ -370,12 +370,6 @@ extern _X_EXPORT void ResetHosts(const char *display); #ifndef NO_LOCAL_CLIENT_CRED -extern _X_EXPORT void -EnableLocalUser(void); - -extern _X_EXPORT void -DisableLocalUser(void); - extern _X_EXPORT void LocalAccessScopeUser(void); #endif diff --git a/os/access.c b/os/access.c index 3ba1a8cbf..352506bec 100644 --- a/os/access.c +++ b/os/access.c @@ -260,6 +260,11 @@ static void siTypesInitialize(void); static void EnableLocalHost(void); static void DisableLocalHost(void); +#ifndef NO_LOCAL_CLIENT_CRED +static void EnableLocalUser(void); +static void DisableLocalUser(void); +#endif + /* * called when authorization is not enabled to add the * local host to the access list @@ -348,8 +353,7 @@ out: return length; } -void -EnableLocalUser(void) +static void EnableLocalUser(void) { char *addr = NULL; int length = -1; @@ -364,8 +368,7 @@ EnableLocalUser(void) free(addr); } -void -DisableLocalUser(void) +static void DisableLocalUser(void) { char *addr = NULL; int length = -1;