diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 06:22:19 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-10-31 06:22:19 +0000 |
commit | 3b5e72bda3263c6bdf81dfface4fae4f06b71032 (patch) | |
tree | 2d34caa16415093581fb4408fc7e06e21ed25544 /source/auth | |
parent | 4eeb7bcd783d7cfb3ac232f1faa035773007401d (diff) | |
download | samba-3b5e72bda3263c6bdf81dfface4fae4f06b71032.tar.gz samba-3b5e72bda3263c6bdf81dfface4fae4f06b71032.tar.xz samba-3b5e72bda3263c6bdf81dfface4fae4f06b71032.zip |
Small 'const' updates ahead of some AuthRewrite merging.
Diffstat (limited to 'source/auth')
-rw-r--r-- | source/auth/pampass.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/auth/pampass.c b/source/auth/pampass.c index 6980b14f464..018eae3a07e 100644 --- a/source/auth/pampass.c +++ b/source/auth/pampass.c @@ -547,7 +547,7 @@ static NTSTATUS smb_pam_auth(pam_handle_t *pamh, char *user) /* * PAM Account Handler */ -static NTSTATUS smb_pam_account(pam_handle_t *pamh, char * user) +static NTSTATUS smb_pam_account(pam_handle_t *pamh, const char * user) { int pam_error; NTSTATUS nt_status = NT_STATUS_ACCOUNT_DISABLED; @@ -777,7 +777,7 @@ BOOL smb_pam_close_session(char *user, char *tty, char *rhost) * PAM Externally accessible Account handler */ -NTSTATUS smb_pam_accountcheck(char * user) +NTSTATUS smb_pam_accountcheck(const char * user) { NTSTATUS nt_status = NT_STATUS_ACCOUNT_DISABLED; pam_handle_t *pamh = NULL; @@ -873,19 +873,19 @@ BOOL smb_pam_passchange(const char * user, const char * oldpassword, const char #else /* If PAM not used, no PAM restrictions on accounts. */ - NTSTATUS smb_pam_accountcheck(char * user) +NTSTATUS smb_pam_accountcheck(const char * user) { return NT_STATUS_OK; } /* If PAM not used, also no PAM restrictions on sessions. */ - BOOL smb_pam_claim_session(char *user, char *tty, char *rhost) +BOOL smb_pam_claim_session(char *user, char *tty, char *rhost) { return True; } /* If PAM not used, also no PAM restrictions on sessions. */ - BOOL smb_pam_close_session(char *in_user, char *tty, char *rhost) +BOOL smb_pam_close_session(char *in_user, char *tty, char *rhost) { return True; } |