diff options
author | Roger Leigh <rleigh@debian.org> | 2005-12-31 17:45:07 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2005-12-31 17:45:07 +0000 |
commit | a5d614c8d503b1324453cb2846059d47854c586e (patch) | |
tree | a853ca8dcb6604062e2030ff8e26acd945b2c56f | |
parent | d643316f057461220fa764175ee2cdeca60c8b42 (diff) | |
download | schroot-a5d614c8d503b1324453cb2846059d47854c586e.tar.gz |
* schroot/sbuild-auth.cc (run): Fix casting to "const void **".
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | schroot/sbuild-auth.cc | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,9 @@ 2005-12-31 Roger Leigh <rleigh@debian.org> + * schroot/sbuild-auth.cc (run): Fix casting to "const void **". + +2005-12-31 Roger Leigh <rleigh@debian.org> + * schroot/Makefile.am (AM_CXXFLAGS): Add additional warning flags. * schroot/sbuild-auth.cc (run): Use a static_cast instead of a diff --git a/schroot/sbuild-auth.cc b/schroot/sbuild-auth.cc index 27b882e9..d8384a3d 100644 --- a/schroot/sbuild-auth.cc +++ b/schroot/sbuild-auth.cc @@ -317,8 +317,8 @@ Auth::run () cred_establish(); const char *authuser = 0; - pam_get_item(this->pam, PAM_USER, - static_cast<const void **>(&authuser)); + const void *tmpcast = static_cast<const void *>(authuser); + pam_get_item(this->pam, PAM_USER, &tmpcast); log_debug(DEBUG_INFO) << format("PAM authentication succeeded for user %1%") % authuser << endl; |