From 9a8933e9a16e60fa2022a95737432925968a5e03 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Tue, 10 Nov 2009 12:42:35 +0100 Subject: [PATCH] Undo castings caught by gcc4.3, squid_ldap_auth in 3.1 is C not C++ --- helpers/basic_auth/LDAP/squid_ldap_auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/basic_auth/LDAP/squid_ldap_auth.c b/helpers/basic_auth/LDAP/squid_ldap_auth.c index 80142bf144..2e36ca66b9 100644 --- a/helpers/basic_auth/LDAP/squid_ldap_auth.c +++ b/helpers/basic_auth/LDAP/squid_ldap_auth.c @@ -176,7 +176,7 @@ squid_ldap_set_aliasderef(LDAP * ld, int deref) static void squid_ldap_set_referrals(LDAP * ld, int referrals) { - int *value = static_cast(referrals ? LDAP_OPT_ON :LDAP_OPT_OFF); + int *value = referrals ? LDAP_OPT_ON :LDAP_OPT_OFF; ldap_set_option(ld, LDAP_OPT_REFERRALS, value); } static void @@ -385,7 +385,7 @@ main(int argc, char **argv) case 'h': if (ldapServer) { int len = strlen(ldapServer) + 1 + strlen(value) + 1; - char *newhost = static_cast(malloc(len)); + char *newhost = malloc(len); snprintf(newhost, len, "%s %s", ldapServer, value); free(ldapServer); ldapServer = newhost; @@ -505,7 +505,7 @@ main(int argc, char **argv) char *value = argv[1]; if (ldapServer) { int len = strlen(ldapServer) + 1 + strlen(value) + 1; - char *newhost = static_cast(malloc(len)); + char *newhost = malloc(len); snprintf(newhost, len, "%s %s", ldapServer, value); free(ldapServer); ldapServer = newhost; -- 2.47.3