summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-15 05:19:24 -0800
committerKeith Packard <keithp@keithp.com>2014-01-12 10:14:49 -0800
commitabce3206cbc82f632abae5344e0ce46622e00f24 (patch)
treebb6c1cfc61f79ffc9b57d1becfcd51fc93fbcfa7 /os
parenta1cb69dc28fdbfbdfaf954e0bec221f759462399 (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.c2
-rw-r--r--os/auth.c4
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];
diff --git a/os/auth.c b/os/auth.c
index ac20de47d..5fcb538c4 100644
--- a/os/auth.c
+++ b/os/auth.c
@@ -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;
}