mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-04 22:36:10 +00:00
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>
This commit is contained in:
parent
e2e2747f40
commit
2eab697adb
8 changed files with 68 additions and 66 deletions
|
|
@ -55,7 +55,7 @@ extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *);
|
|||
static enum auth_stat why;
|
||||
|
||||
static char *
|
||||
authdes_ezdecode(char *inmsg, int len)
|
||||
authdes_ezdecode(const char *inmsg, int len)
|
||||
{
|
||||
struct rpc_msg msg;
|
||||
char cred_area[MAX_AUTH_BYTES];
|
||||
|
|
@ -127,7 +127,7 @@ CheckNetName (
|
|||
static char rpc_error[MAXNETNAMELEN+50];
|
||||
|
||||
_X_HIDDEN XID
|
||||
SecureRPCCheck (unsigned short data_length, char *data,
|
||||
SecureRPCCheck (unsigned short data_length, const char *data,
|
||||
ClientPtr client, char **reason)
|
||||
{
|
||||
char *fullname;
|
||||
|
|
@ -158,7 +158,7 @@ SecureRPCInit (void)
|
|||
}
|
||||
|
||||
_X_HIDDEN int
|
||||
SecureRPCAdd (unsigned short data_length, char *data, XID id)
|
||||
SecureRPCAdd (unsigned short data_length, const char *data, XID id)
|
||||
{
|
||||
if (data_length)
|
||||
AddHost ((pointer) 0, FamilyNetname, data_length, data);
|
||||
|
|
@ -186,7 +186,7 @@ SecureRPCFromID (XID id, unsigned short *data_lenp, char **datap)
|
|||
}
|
||||
|
||||
_X_HIDDEN int
|
||||
SecureRPCRemove (unsigned short data_length, char *data)
|
||||
SecureRPCRemove (unsigned short data_length, const char *data)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue