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;