From: Henrik Nordstrom Date: Mon, 1 Feb 2010 14:07:11 +0000 (+0100) Subject: pam_auth in 3.1 is C not C++ X-Git-Tag: SQUID_3_1_0_16~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52bac350e8227d627bf33ba97b0c6f60c1ddb6af;p=thirdparty%2Fsquid.git pam_auth in 3.1 is C not C++ --- diff --git a/helpers/basic_auth/PAM/pam_auth.c b/helpers/basic_auth/PAM/pam_auth.c index 4da7a92312..36c81d2fc9 100644 --- a/helpers/basic_auth/PAM/pam_auth.c +++ b/helpers/basic_auth/PAM/pam_auth.c @@ -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(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;