From: serassio <> Date: Sun, 26 Dec 2004 18:31:11 +0000 (+0000) Subject: Build fails on Linux and FreeBSD (and probably on all others platforms) X-Git-Tag: SQUID_3_0_PRE4~939 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8021b4a6136e4058a6d4e1341d10f4f4a5610da4;p=thirdparty%2Fsquid.git Build fails on Linux and FreeBSD (and probably on all others platforms) with --enable-forw-via-db configure option: Correct type casting is needed. --- diff --git a/src/access_log.cc b/src/access_log.cc index b2dde4c123..88e39d1fab 100644 --- a/src/access_log.cc +++ b/src/access_log.cc @@ -1,6 +1,6 @@ /* - * $Id: access_log.cc,v 1.100 2004/12/20 16:30:34 robertc Exp $ + * $Id: access_log.cc,v 1.101 2004/12/26 11:31:11 serassio Exp $ * * DEBUG: section 46 Access Log * AUTHOR: Duane Wessels @@ -1574,7 +1574,7 @@ fvdbCount(hash_table * hash, const char *key) if (NULL == hash) return; - fv = hash_lookup(hash, key); + fv = (fvdb_entry *)hash_lookup(hash, key); if (NULL == fv) { fv = static_cast (xcalloc(1, sizeof(fvdb_entry))); @@ -1630,7 +1630,7 @@ static void fvdbFreeEntry(void *data) { - fvdb_entry *fv = data; + fvdb_entry *fv = static_cast (data); xfree(fv->hash.key); xfree(fv); }