summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2005-12-31 17:45:07 +0000
committerRoger Leigh <rleigh@debian.org>2005-12-31 17:45:07 +0000
commita5d614c8d503b1324453cb2846059d47854c586e (patch)
treea853ca8dcb6604062e2030ff8e26acd945b2c56f
parentd643316f057461220fa764175ee2cdeca60c8b42 (diff)
downloadschroot-a5d614c8d503b1324453cb2846059d47854c586e.tar.gz
* schroot/sbuild-auth.cc (run): Fix casting to "const void **".
-rw-r--r--ChangeLog4
-rw-r--r--schroot/sbuild-auth.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 10554f50..d2b5c942 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;