From 8021b4a6136e4058a6d4e1341d10f4f4a5610da4 Mon Sep 17 00:00:00 2001 From: serassio <> Date: Sun, 26 Dec 2004 18:31:11 +0000 Subject: [PATCH] Build fails on Linux and FreeBSD (and probably on all others platforms) with --enable-forw-via-db configure option: Correct type casting is needed. --- src/access_log.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.47.2