diff options
-rw-r--r-- | Xext/security.c | 3 | ||||
-rw-r--r-- | include/os.h | 2 | ||||
-rw-r--r-- | os/auth.c | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/Xext/security.c b/Xext/security.c index 6fc1eafdd..63892aa85 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -171,7 +171,8 @@ SecurityDeleteAuthorization( { SecurityAuthorizationPtr pAuth = (SecurityAuthorizationPtr)value; unsigned short name_len, data_len; - char *name, *data; + const char *name; + char *data; int status; int i; OtherClientsPtr pEventClient; diff --git a/include/os.h b/include/os.h index 1fd5367c4..0b5024156 100644 --- a/include/os.h +++ b/include/os.h @@ -405,7 +405,7 @@ extern _X_EXPORT void InitAuthorization(char * /*filename*/); extern _X_EXPORT int AuthorizationFromID ( XID id, unsigned short *name_lenp, - char **namep, + const char **namep, unsigned short *data_lenp, char **datap); @@ -48,7 +48,7 @@ from The Open Group. struct protocol { unsigned short name_length; - char *name; + const char *name; AuthAddCFunc Add; /* new authorization data */ AuthCheckFunc Check; /* verify client authorization data */ AuthRstCFunc Reset; /* delete all authorization data entries */ @@ -236,7 +236,7 @@ int AuthorizationFromID ( XID id, unsigned short *name_lenp, - char **namep, + const char **namep, unsigned short *data_lenp, char **datap) { |