X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fgetauth.c;h=e127206c31a9da5fd516520206a590bf8c3c46d4;hb=2d0f4674481669fea5bde77e596532aa4308fd05;hp=aa5d72d35dc04f97438bcc85b73adc533503b434;hpb=fb6a490bfa8d88706cac5ee7bafaadcb165d009b;p=framework%2Fuifw%2Fxorg%2Flib%2Flibice.git diff --git a/src/getauth.c b/src/getauth.c old mode 100755 new mode 100644 index aa5d72d..e127206 --- 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) { /* @@ -246,7 +246,7 @@ auth_valid (const char *auth_name, int num_auth_names, { break; } - + if (i < num_auth_names) { *index_ret = i;