Constify.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@400 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
31b627f215
commit
e484c931ae
14 changed files with 24 additions and 23 deletions
1
CREDITS
1
CREDITS
|
@ -25,6 +25,7 @@ or indirectly, with patches, criticism, suggestions, or ideas:
|
|||
Hubert Feyrer <hubert@feyrer.de>
|
||||
Mark Murray <markm@freebsd.org>
|
||||
Mike Petullo <mike@flyn.org>
|
||||
Mikhail Teterin <mi@aldan.algebra.com>
|
||||
Mikko Työläjärvi <mbsd@pacbell.net>
|
||||
Robert Watson <rwatson@freebsd.org>
|
||||
Ruslan Ermilov <ru@freebsd.org>
|
||||
|
|
|
@ -80,7 +80,7 @@ openpam_set_option(pam_handle_t *_pamh,
|
|||
const char *_value);
|
||||
|
||||
int
|
||||
pam_error(pam_handle_t *_pamh,
|
||||
pam_error(const pam_handle_t *_pamh,
|
||||
const char *_fmt,
|
||||
...)
|
||||
OPENPAM_FORMAT ((__printf__, 2, 3))
|
||||
|
@ -94,14 +94,14 @@ pam_get_authtok(pam_handle_t *_pamh,
|
|||
OPENPAM_NONNULL((1,3));
|
||||
|
||||
int
|
||||
pam_info(pam_handle_t *_pamh,
|
||||
pam_info(const pam_handle_t *_pamh,
|
||||
const char *_fmt,
|
||||
...)
|
||||
OPENPAM_FORMAT ((__printf__, 2, 3))
|
||||
OPENPAM_NONNULL((1,2));
|
||||
|
||||
int
|
||||
pam_prompt(pam_handle_t *_pamh,
|
||||
pam_prompt(const pam_handle_t *_pamh,
|
||||
int _style,
|
||||
char **_resp,
|
||||
const char *_fmt,
|
||||
|
@ -117,21 +117,21 @@ pam_setenv(pam_handle_t *_pamh,
|
|||
OPENPAM_NONNULL((1,2,3));
|
||||
|
||||
int
|
||||
pam_vinfo(pam_handle_t *_pamh,
|
||||
pam_vinfo(const pam_handle_t *_pamh,
|
||||
const char *_fmt,
|
||||
va_list _ap)
|
||||
OPENPAM_FORMAT ((__printf__, 2, 0))
|
||||
OPENPAM_NONNULL((1,2));
|
||||
|
||||
int
|
||||
pam_verror(pam_handle_t *_pamh,
|
||||
pam_verror(const pam_handle_t *_pamh,
|
||||
const char *_fmt,
|
||||
va_list _ap)
|
||||
OPENPAM_FORMAT ((__printf__, 2, 0))
|
||||
OPENPAM_NONNULL((1,2));
|
||||
|
||||
int
|
||||
pam_vprompt(pam_handle_t *_pamh,
|
||||
pam_vprompt(const pam_handle_t *_pamh,
|
||||
int _style,
|
||||
char **_resp,
|
||||
const char *_fmt,
|
||||
|
|
|
@ -75,13 +75,13 @@ pam_end(pam_handle_t *_pamh,
|
|||
OPENPAM_NONNULL((1));
|
||||
|
||||
int
|
||||
pam_get_data(pam_handle_t *_pamh,
|
||||
pam_get_data(const pam_handle_t *_pamh,
|
||||
const char *_module_data_name,
|
||||
void **_data)
|
||||
const void **_data)
|
||||
OPENPAM_NONNULL((1,2,3));
|
||||
|
||||
int
|
||||
pam_get_item(pam_handle_t *_pamh,
|
||||
pam_get_item(const pam_handle_t *_pamh,
|
||||
int _item_type,
|
||||
const void **_item)
|
||||
OPENPAM_NONNULL((1,3));
|
||||
|
@ -139,7 +139,7 @@ pam_start(const char *_service,
|
|||
OPENPAM_NONNULL((4));
|
||||
|
||||
const char *
|
||||
pam_strerror(pam_handle_t *_pamh,
|
||||
pam_strerror(const pam_handle_t *_pamh,
|
||||
int _error_number);
|
||||
|
||||
/*
|
||||
|
|
|
@ -57,7 +57,7 @@ openpam_borrow_cred(pam_handle_t *pamh,
|
|||
const struct passwd *pwd)
|
||||
{
|
||||
struct pam_saved_cred *scred;
|
||||
void *scredp;
|
||||
const void *scredp;
|
||||
int r;
|
||||
|
||||
ENTERI(pwd->pw_uid);
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
int
|
||||
openpam_restore_cred(pam_handle_t *pamh)
|
||||
{
|
||||
struct pam_saved_cred *scred;
|
||||
void *scredp;
|
||||
const struct pam_saved_cred *scred;
|
||||
const void *scredp;
|
||||
int r;
|
||||
|
||||
ENTER();
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_error(pam_handle_t *pamh,
|
||||
pam_error(const pam_handle_t *pamh,
|
||||
const char *fmt,
|
||||
...)
|
||||
{
|
||||
|
|
|
@ -48,9 +48,9 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_get_data(pam_handle_t *pamh,
|
||||
pam_get_data(const pam_handle_t *pamh,
|
||||
const char *module_data_name,
|
||||
void **data)
|
||||
const void **data)
|
||||
{
|
||||
pam_data_t *dp;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ const char *_pam_item_name[PAM_NUM_ITEMS] = {
|
|||
*/
|
||||
|
||||
int
|
||||
pam_get_item(pam_handle_t *pamh,
|
||||
pam_get_item(const pam_handle_t *pamh,
|
||||
int item_type,
|
||||
const void **item)
|
||||
{
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_info(pam_handle_t *pamh,
|
||||
pam_info(const pam_handle_t *pamh,
|
||||
const char *fmt,
|
||||
...)
|
||||
{
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_prompt(pam_handle_t *pamh,
|
||||
pam_prompt(const pam_handle_t *pamh,
|
||||
int style,
|
||||
char **resp,
|
||||
const char *fmt,
|
||||
|
|
|
@ -81,7 +81,7 @@ const char *_pam_err_name[PAM_NUM_ERRORS] = {
|
|||
*/
|
||||
|
||||
const char *
|
||||
pam_strerror(pam_handle_t *pamh,
|
||||
pam_strerror(const pam_handle_t *pamh,
|
||||
int error_number)
|
||||
{
|
||||
static char unknown[16];
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_verror(pam_handle_t *pamh,
|
||||
pam_verror(const pam_handle_t *pamh,
|
||||
const char *fmt,
|
||||
va_list ap)
|
||||
{
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_vinfo(pam_handle_t *pamh,
|
||||
pam_vinfo(const pam_handle_t *pamh,
|
||||
const char *fmt,
|
||||
va_list ap)
|
||||
{
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
*/
|
||||
|
||||
int
|
||||
pam_vprompt(pam_handle_t *pamh,
|
||||
pam_vprompt(const pam_handle_t *pamh,
|
||||
int style,
|
||||
char **resp,
|
||||
const char *fmt,
|
||||
|
|
Loading…
Reference in a new issue