summaryrefslogtreecommitdiff
path: root/include/os.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-05-07 09:32:34 -0700
committerKeith Packard <keithp@keithp.com>2010-05-07 12:22:58 -0700
commit2eab697adba4b1858a530750e9a35fba79a7bf26 (patch)
treea67e747f860fde87ff61eaace3991b0834248ba4 /include/os.h
parente2e2747f40c4b9e23dba38ea656d4c082e83a794 (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 'include/os.h')
-rw-r--r--include/os.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/os.h b/include/os.h
index 453ab82c7..3b07bdee9 100644
--- a/include/os.h
+++ b/include/os.h
@@ -285,7 +285,7 @@ extern _X_EXPORT int AddHost(
ClientPtr /*client*/,
int /*family*/,
unsigned /*length*/,
- pointer /*pAddr*/);
+ const void */*pAddr*/);
extern _X_EXPORT Bool ForEachHostInFamily (
int /*family*/,
@@ -369,9 +369,9 @@ extern _X_EXPORT int AuthorizationFromID (
extern _X_EXPORT XID CheckAuthorization(
unsigned int /*namelength*/,
- char * /*name*/,
+ const char * /*name*/,
unsigned int /*datalength*/,
- char * /*data*/,
+ const char * /*data*/,
ClientPtr /*client*/,
char ** /*reason*/
);
@@ -380,22 +380,22 @@ extern _X_EXPORT void ResetAuthorization(void);
extern _X_EXPORT int RemoveAuthorization (
unsigned short name_length,
- char *name,
+ const char *name,
unsigned short data_length,
- char *data);
+ const char *data);
extern _X_EXPORT int AddAuthorization(
unsigned int /*name_length*/,
- char * /*name*/,
+ const char * /*name*/,
unsigned int /*data_length*/,
char * /*data*/);
#ifdef XCSECURITY
extern _X_EXPORT XID GenerateAuthorization(
unsigned int /* name_length */,
- char * /* name */,
+ const char * /* name */,
unsigned int /* data_length */,
- char * /* data */,
+ const char * /* data */,
unsigned int * /* data_length_return */,
char ** /* data_return */);
#endif