From 3c830a3511a4188cba1d75ffbab60b0834840ebf Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Tue, 20 Sep 2005 13:13:54 +0000 Subject: [PATCH] Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- Revert de-constification of pam_get_data and pam_get_item prototypes --- libpam/include/security/_pam_types.h | 2 +- libpam/include/security/pam_modules.h | 2 +- libpam/pam_data.c | 2 +- libpam/pam_item.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libpam/include/security/_pam_types.h b/libpam/include/security/_pam_types.h index c866eb62..6815b459 100644 --- a/libpam/include/security/_pam_types.h +++ b/libpam/include/security/_pam_types.h @@ -172,7 +172,7 @@ extern int PAM_NONNULL((1)) pam_set_item(pam_handle_t *pamh, int item_type, const void *item); extern int PAM_NONNULL((1,3)) -pam_get_item(pam_handle_t *pamh, int item_type, const void **item); +pam_get_item(const pam_handle_t *pamh, int item_type, const void **item); extern const char * pam_strerror(pam_handle_t *pamh, int errnum); diff --git a/libpam/include/security/pam_modules.h b/libpam/include/security/pam_modules.h index 7f75f9dc..c315ac26 100644 --- a/libpam/include/security/pam_modules.h +++ b/libpam/include/security/pam_modules.h @@ -18,7 +18,7 @@ pam_set_data(pam_handle_t *pamh, const char *module_data_name, void *data, int error_status)); extern int PAM_NONNULL((1,2,3)) -pam_get_data(pam_handle_t *pamh, const char *module_data_name, +pam_get_data(const pam_handle_t *pamh, const char *module_data_name, const void **data); extern int PAM_NONNULL((1,2)) diff --git a/libpam/pam_data.c b/libpam/pam_data.c index a3d73c44..28b3680d 100644 --- a/libpam/pam_data.c +++ b/libpam/pam_data.c @@ -79,7 +79,7 @@ int pam_set_data( } int pam_get_data( - pam_handle_t *pamh, + const pam_handle_t *pamh, const char *module_data_name, const void **datap) { diff --git a/libpam/pam_item.c b/libpam/pam_item.c index fee5bbb6..105a9de7 100644 --- a/libpam/pam_item.c +++ b/libpam/pam_item.c @@ -145,7 +145,7 @@ int pam_set_item (pam_handle_t *pamh, int item_type, const void *item) return retval; } -int pam_get_item (pam_handle_t *pamh, int item_type, const void **item) +int pam_get_item (const pam_handle_t *pamh, int item_type, const void **item) { int retval = PAM_SUCCESS; -- 2.40.0