diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2008-01-28 14:50:21 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2008-01-28 14:50:21 +0000 |
commit | 93852756cbb7f5f003c8ef82d306255ba99200f1 (patch) | |
tree | 16ce9710bb5f245ef60ac6eb40ae530bb8abac45 /libpam/pam_end.c | |
parent | 03b88d95ae88955dacf12c7c2ee3f03bd0f7403b (diff) | |
download | pam-93852756cbb7f5f003c8ef82d306255ba99200f1.tar.gz pam-93852756cbb7f5f003c8ef82d306255ba99200f1.tar.bz2 pam-93852756cbb7f5f003c8ef82d306255ba99200f1.zip |
Relevant BUGIDs:
Purpose of commit: cleanup
Commit summary:
---------------
2008-01-28 Thorsten Kukuk <kukuk@thkukuk.de>
* libpam/pam_audit.c: Include pam_modutil_private.h.
* libpam/pam_item.c (pam_set_item): Fix compiler warning.
* libpam/pam_end.c (pam_end): Cast to correct pointer type.
* libpam/include/security/_pam_macros.h (_pam_overwrite_n): Use
unsigned int.
Diffstat (limited to 'libpam/pam_end.c')
-rw-r--r-- | libpam/pam_end.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpam/pam_end.c b/libpam/pam_end.c index f400c325..c96dc384 100644 --- a/libpam/pam_end.c +++ b/libpam/pam_end.c @@ -78,9 +78,9 @@ int pam_end(pam_handle_t *pamh, int pam_status) _pam_overwrite(pamh->xauth.name); _pam_drop(pamh->xauth.name); - _pam_overwrite_n(pamh->xauth.data, pamh->xauth.datalen); + _pam_overwrite_n(pamh->xauth.data, (unsigned int)pamh->xauth.datalen); _pam_drop(pamh->xauth.data); - _pam_overwrite_n(&pamh->xauth, sizeof(pamh->xauth)); + _pam_overwrite_n((char *)&pamh->xauth, sizeof(pamh->xauth)); /* and finally liberate the memory for the pam_handle structure */ |