[PATCH 16/37] os: Clean up warnings

Keith Packard keithp at keithp.com
Sun Nov 17 00:01:41 PST 2013


Just const char stuff.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 include/os.h | 4 ++--
 os/access.c  | 2 +-
 os/auth.c    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/os.h b/include/os.h
index 450e1a8..ca1ee3a 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 6d991b3..c55b0ef 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 ac20de4..5fcb538 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;
 }
-- 
1.8.4.2



More information about the xorg-devel mailing list