[patch] make useragent and referer log stuff compile

From: Pawel Worach <pawel.worach@dont-contact.us>
Date: Fri, 1 Aug 2003 03:40:05 +0200

Can't use class RefCount where a bool is expected says gcc 3.3.1
I guess this is the right fix :)

        - Pawel

Index: src/client_side_request.cc
===================================================================
RCS file: /squid/squid3/src/client_side_request.cc,v
retrieving revision 1.28
diff -u -r1.28 client_side_request.cc
--- src/client_side_request.cc 14 Jul 2003 15:07:21 -0000 1.28
+++ src/client_side_request.cc 1 Aug 2003 01:34:56 -0000
@@ -674,13 +674,13 @@
 
 #if USE_USERAGENT_LOG
     if ((str = httpHeaderGetStr(req_hdr, HDR_USER_AGENT)))
- logUserAgent(fqdnFromAddr(http->getConn() ?
http->getConn()->log_addr : no_addr), str);
+ logUserAgent(fqdnFromAddr(http->getConn().getRaw() ?
http->getConn()->log_addr : no_addr), str);
 
 #endif
 #if USE_REFERER_LOG
 
     if ((str = httpHeaderGetStr(req_hdr, HDR_REFERER)))
- logReferer(fqdnFromAddr(http->getConn() ? http->getConn()->log_addr
: no_addr), str, http->log_uri);
+ logReferer(fqdnFromAddr(http->getConn().getRaw() ?
http->getConn()->log_addr : no_addr), str, http->log_uri);
 
 #endif
 #if FORW_VIA_DB
Received on Fri Aug 01 2003 - 04:14:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:25 MST