diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-09 21:37:48 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 20:00:07 -0800 |
commit | ffa659dd6dd1fb8847bfdcc5e1e2be353b6395b6 (patch) | |
tree | 14f40847a53af2465f457989fcadd1ecb28c0613 /src/getauth.c | |
parent | 902a52ea9d7b6e6f56f7023009859072854a0fc7 (diff) |
Fix gcc -Wwrite-strings warnings in AuthNames handling
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/getauth.c')
-rw-r--r-- | src/getauth.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/getauth.c b/src/getauth.c index fdacd24..e127206 100644 --- a/src/getauth.c +++ b/src/getauth.c @@ -33,7 +33,7 @@ Author: Ralph Mor, X Consortium #include "ICElibint.h" static Bool auth_valid (const char *auth_name, int num_auth_names, - char **auth_names, int *index_ret); + const char **auth_names, int *index_ret); /* @@ -55,9 +55,9 @@ static Bool auth_valid (const char *auth_name, int num_auth_names, void _IceGetPoAuthData ( - char *protocolName, - char *networkId, - char *authName, + const char *protocolName, + const char *networkId, + const char *authName, unsigned short *authDataLenRet, char **authDataRet ) @@ -86,9 +86,9 @@ _IceGetPoAuthData ( void _IceGetPaAuthData ( - char *protocolName, - char *networkId, - char *authName, + const char *protocolName, + const char *networkId, + const char *authName, unsigned short *authDataLenRet, char **authDataRet ) @@ -125,12 +125,12 @@ _IceGetPaAuthData ( void _IceGetPoValidAuthIndices ( - char *protocol_name, - char *network_id, - int num_auth_names, - char **auth_names, - int *num_indices_ret, - int *indices_ret /* in/out arg */ + const char *protocol_name, + const char *network_id, + int num_auth_names, + const char **auth_names, + int *num_indices_ret, + int *indices_ret /* in/out arg */ ) { FILE *auth_file; @@ -184,12 +184,12 @@ _IceGetPoValidAuthIndices ( void _IceGetPaValidAuthIndices ( - char *protocol_name, - char *network_id, - int num_auth_names, - char **auth_names, - int *num_indices_ret, - int *indices_ret /* in/out arg */ + const char *protocol_name, + const char *network_id, + int num_auth_names, + const char **auth_names, + int *num_indices_ret, + int *indices_ret /* in/out arg */ ) { int index_ret; @@ -232,7 +232,7 @@ _IceGetPaValidAuthIndices ( static Bool auth_valid (const char *auth_name, int num_auth_names, - char **auth_names, int *index_ret) + const char **auth_names, int *index_ret) { /* |