diff options
-rw-r--r-- | include/os.h | 4 | ||||
-rw-r--r-- | os/access.c | 2 | ||||
-rw-r--r-- | os/auth.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/os.h b/include/os.h index 9b6729421..4dacc1e11 100644 --- a/include/os.h +++ b/include/os.h @@ -448,7 +448,7 @@ extern _X_EXPORT void AddLocalHosts(void); extern _X_EXPORT void -ResetHosts(char *display); +ResetHosts(const char *display); extern _X_EXPORT void EnableLocalHost(void); @@ -471,7 +471,7 @@ RegisterAuthorizations(void); #endif extern _X_EXPORT void -InitAuthorization(char * /*filename */ ); +InitAuthorization(const char * /*filename */ ); /* extern int LoadAuthorization(void); */ diff --git a/os/access.c b/os/access.c index 6d991b362..c55b0ef25 100644 --- a/os/access.c +++ b/os/access.c @@ -814,7 +814,7 @@ AddLocalHosts(void) /* Reset access control list to initial hosts */ void -ResetHosts(char *display) +ResetHosts(const char *display) { register HOST *host; char lhostname[120], ohostname[120]; @@ -96,12 +96,12 @@ static struct protocol protocols[] = { * specified authorization file */ -static char *authorization_file = (char *) NULL; +static const char *authorization_file = NULL; static Bool ShouldLoadAuth = TRUE; void -InitAuthorization(char *file_name) +InitAuthorization(const char *file_name) { authorization_file = file_name; } |