diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-15 05:19:24 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-12 10:14:49 -0800 |
commit | abce3206cbc82f632abae5344e0ce46622e00f24 (patch) | |
tree | bb6c1cfc61f79ffc9b57d1becfcd51fc93fbcfa7 /os | |
parent | a1cb69dc28fdbfbdfaf954e0bec221f759462399 (diff) |
os: Clean up warnings
Just const char stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'os')
-rw-r--r-- | os/access.c | 2 | ||||
-rw-r--r-- | os/auth.c | 4 |
2 files changed, 3 insertions, 3 deletions
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; } |