diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-06 22:50:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-06 22:50:27 -0700 |
commit | c24ac15bfa150aeed51d9ec5cb9f2a5054e6f91d (patch) | |
tree | 8c60812023f2709fabaf72e6a016468150a5ea12 | |
parent | 063daed4b43090a3e37f29e9796ffce0861573f1 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | io.c | 4 | ||||
-rw-r--r-- | misc.c | 2 | ||||
-rw-r--r-- | pm.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -57,7 +57,7 @@ X Window System is a trademark of The Open Group. /* * Error messages returned to clients who are denied access */ -static char * server_reason[2] = { +static const char * server_reason[2] = { "Authentication rejected", "permission denied" }; @@ -693,7 +693,7 @@ ProcessClientWaiting ( fd_set * winit, int client_idx) { - char * conn_auth_name = "XC-QUERY-SECURITY-1"; + const char * conn_auth_name = "XC-QUERY-SECURITY-1"; int conn_auth_namelen; int conn_auth_datalen; xConnClientPrefix client; @@ -52,7 +52,7 @@ static Bool HaveSitePolicy = 0; /*ARGSUSED*/ static void BadSyntax( - char *msg, + const char *msg, int line) { #ifdef DEBUG @@ -98,7 +98,7 @@ void FWPprocessMessages( struct sockaddr_in server_sockaddr_in; struct sockaddr_in dummy_sockaddr_in; char * server_name_base; - char * config_failure = "unrecognized server or permission denied"; + const char * config_failure = "unrecognized server or permission denied"; char * tmp_str; int rule_number = -1; char * colon; |