]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
pam_auth in 3.1 is C not C++
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 1 Feb 2010 14:07:11 +0000 (15:07 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 1 Feb 2010 14:07:11 +0000 (15:07 +0100)
helpers/basic_auth/PAM/pam_auth.c

index 4da7a92312f4597f843e2bcea73853fd7369a938..36c81d2fc96bb61dc986e8d69540a66e9f95ec24 100644 (file)
@@ -116,7 +116,7 @@ password_conversation(int num_msg, const struct pam_message **msg, struct pam_re
         fprintf(stderr, "ERROR: No password available to password_converstation!\n");
         return PAM_CONV_ERR;
     }
-    *resp = static_cast<struct pam_response *>(calloc(num_msg, sizeof(struct pam_response)));
+    *resp = (struct pam_response *)(calloc(num_msg, sizeof(struct pam_response)));
     if (!*resp) {
         fprintf(stderr, "ERROR: Out of memory!\n");
         return PAM_CONV_ERR;