diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-07 09:32:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-05-07 12:22:58 -0700 |
commit | 2eab697adba4b1858a530750e9a35fba79a7bf26 (patch) | |
tree | a67e747f860fde87ff61eaace3991b0834248ba4 /os/auth.c | |
parent | e2e2747f40c4b9e23dba38ea656d4c082e83a794 (diff) |
Constify function prototypes in auth & xdmcp code
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Tested-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'os/auth.c')
-rw-r--r-- | os/auth.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -159,9 +159,9 @@ RegisterAuthorizations (void) XID CheckAuthorization ( unsigned int name_length, - char *name, + const char *name, unsigned int data_length, - char *data, + const char *data, ClientPtr client, char **reason) /* failure message. NULL for default msg */ { @@ -256,9 +256,9 @@ AuthorizationFromID ( int RemoveAuthorization ( unsigned short name_length, - char *name, + const char *name, unsigned short data_length, - char *data) + const char *data) { int i; @@ -274,7 +274,8 @@ RemoveAuthorization ( } int -AddAuthorization (unsigned name_length, char *name, unsigned data_length, char *data) +AddAuthorization (unsigned name_length, const char *name, + unsigned data_length, char *data) { int i; @@ -294,9 +295,9 @@ AddAuthorization (unsigned name_length, char *name, unsigned data_length, char * XID GenerateAuthorization( unsigned name_length, - char *name, + const char *name, unsigned data_length, - char *data, + const char *data, unsigned *data_length_return, char **data_return) { |