]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gcc 3.4.2 fixes from Henrik
authorrobertc <>
Wed, 22 Dec 2004 00:28:27 +0000 (00:28 +0000)
committerrobertc <>
Wed, 22 Dec 2004 00:28:27 +0000 (00:28 +0000)
26 files changed:
Makefile.in
include/config.h
lib/Profiler.c
lib/cppunit-1.10.0/examples/hierarchy/ChessTest.h
lib/cppunit-1.10.0/src/cppunit/Makefile.in
lib/hash.c
lib/libTrie/include/Trie.h
lib/radix.c
lib/util.c
src/ACLChecklist.cc
src/DiskIO/Blocking/BlockingFile.cc
src/DiskIO/DiskDaemon/DiskdFile.cc
src/DiskIO/DiskThreads/DiskThreadsDiskFile.cc
src/ESI.cc
src/ESIInclude.cc
src/IPInterception.cc
src/Makefile.am
src/Makefile.in
src/cachemgr.cc
src/client_side_request.cc
src/dnsserver.cc
src/fs/ufs/StoreFSufs.h
src/fs/ufs/ufscommon.cc
src/main.cc
src/squid.h
src/tests/testAuth.cc

index 7a27e7296e68ceaaf213276bc359ab77b802271e..a8ce5a4c82424ee541bbb3cc07f8ff30c441b833 100644 (file)
@@ -15,7 +15,7 @@
 @SET_MAKE@
 
 #
-# $Id: Makefile.in,v 1.66 2004/12/21 15:16:16 robertc Exp $
+# $Id: Makefile.in,v 1.67 2004/12/21 17:28:27 robertc Exp $
 #
 srcdir = @srcdir@
 top_srcdir = @top_srcdir@
index dc261b0aa65cd5065a5525059f3e7cbdde2a50af..bca42f6ece2cf44fe56317b4a8ca2ac00ac5fe7b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: config.h,v 1.14 2004/12/21 16:17:58 hno Exp $
+ * $Id: config.h,v 1.15 2004/12/21 17:28:27 robertc Exp $
  *
  * AUTHOR: Duane Wessels
  *
index 38ad2aa8504acd1e220e0b6bbef1dfad7d33d393..e8054813f2c14284df9370f7361f7ce80e7cb75f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: Profiler.c,v 1.4 2004/12/21 16:17:58 hno Exp $
+ * $Id: Profiler.c,v 1.5 2004/12/21 17:28:28 robertc Exp $
  *
  * DEBUG: section 81     CPU Profiling Routines
  * AUTHOR: Andres Kroonmaa, Sep.2000
index eda6c5e45c38050d2554f436b6d04368812a548b..8e70c1a263579754e6ebce7b1509996dde4b1d1f 100644 (file)
@@ -16,7 +16,7 @@ public:
   
   void testNumberOfPieces()
   { 
-    CPPUNIT_ASSERT( m_game->getNumberOfPieces () == 32 );
+    CPPUNIT_ASSERT( this->m_game->getNumberOfPieces () == 32 );
   }
 };
 
index bd44c48a1f6a6c8b0d5224c9e731a3090bdfa09d..abb9f0c9edc5d8b6750d886fad1b053e714b6b33 100644 (file)
@@ -15,7 +15,7 @@
 @SET_MAKE@
 
 #
-# $Id: Makefile.in,v 1.4 2004/12/21 15:16:18 robertc Exp $
+# $Id: Makefile.in,v 1.5 2004/12/21 17:28:28 robertc Exp $
 #
 
 SOURCES = $(libcppunit_la_SOURCES)
index 7fac464149fc003400d9a03bea52318f991fb90e..9d2b6272de59cec11f4b7a060d30fb270676d6b2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: hash.c,v 1.16 2004/12/21 16:17:58 hno Exp $
+ * $Id: hash.c,v 1.17 2004/12/21 17:28:28 robertc Exp $
  *
  * DEBUG: section 0     Hash Tables
  * AUTHOR: Harvest Derived
index 856595689ca39276cfa38211c94d762696e8ac90..1551c9badccc8987833396149b74cd240ec7effa 100644 (file)
@@ -37,7 +37,7 @@
 #ifndef   __cplusplus
 
 /* TODO: provide parameterisation for C bindings */
-void *TrieCreate ();
+void *TrieCreate (void);
 void TrieDestroy (void *);
 void *TrieFind (void *, char const *, size_t);
 int TrieAdd (void *, char const *, size_t, void *);
index fb5c4a77fe7361b7354a87f46998cbfeb3cbbc10..9f608026541496ed9f553accb2bda1fb73b374bb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: radix.c,v 1.21 2004/12/21 16:17:58 hno Exp $
+ * $Id: radix.c,v 1.22 2004/12/21 17:28:28 robertc Exp $
  *
  * DEBUG: section 53     Radix tree data structure implementation
  * AUTHOR: NetBSD Derived
index ce66f75929af59d1da69113f1e223e694dcab27c..da822b64b0709114901bc241034f705969a03f55 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: util.c,v 1.91 2004/12/21 16:17:58 hno Exp $
+ * $Id: util.c,v 1.92 2004/12/21 17:28:28 robertc Exp $
  *
  * DEBUG: 
  * AUTHOR: Harvest Derived
index fe43a93cd853ef64629683dd5776f9c7824a91f9..dc56480c64c4d804d54122f2353ceaa8b9412e91 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLChecklist.cc,v 1.22 2004/12/20 17:35:58 robertc Exp $
+ * $Id: ACLChecklist.cc,v 1.23 2004/12/21 17:28:28 robertc Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -272,18 +272,14 @@ ACLChecklist::operator new (size_t size)
     assert (size == sizeof(ACLChecklist));
     CBDATA_INIT_TYPE(ACLChecklist);
     ACLChecklist *result = cbdataAlloc(ACLChecklist);
-    /* Mark result as being owned - we want the refcounter to do the delete
-     * call */
-    return cbdataReference(result);
+    return result;
 }
 
 void
 ACLChecklist::operator delete (void *address)
 {
     ACLChecklist *t = static_cast<ACLChecklist *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (t);
+    cbdataFree(t);
 }
 
 ACLChecklist::ACLChecklist() : accessList (NULL), my_port (0), request (NULL),
index 49dc2525b818e355a99a2d7f9e5934157bec6fac..66d2ca483d02f298aad7f0461e611bd0d15954c6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: BlockingFile.cc,v 1.1 2004/12/20 16:30:38 robertc Exp $
+ * $Id: BlockingFile.cc,v 1.2 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Robert Collins
@@ -47,7 +47,6 @@ BlockingFile::operator new (size_t)
     BlockingFile *result = cbdataAlloc(BlockingFile);
     /* Mark result as being owned - we want the refcounter to do the delete
      * call */
-    cbdataReference(result);
     return result;
 }
 
@@ -55,9 +54,7 @@ void
 BlockingFile::operator delete (void *address)
 {
     BlockingFile *t = static_cast<BlockingFile *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (t);
+    cbdataFree(t);
 }
 
 BlockingFile::BlockingFile (char const *aPath) : fd (-1), closed (true), error_(false)
index 96cb41d5c96021ae82937d9aea9fed50507c8bfc..27e847a8b5bbe516ed04b14f7b17976bebac8bbe 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: DiskdFile.cc,v 1.1 2004/12/20 16:30:38 robertc Exp $
+ * $Id: DiskdFile.cc,v 1.2 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 79    Squid-side DISKD I/O functions.
  * AUTHOR: Duane Wessels
@@ -57,7 +57,6 @@ DiskdFile::operator new (size_t)
     DiskdFile *result = cbdataAlloc(DiskdFile);
     /* Mark result as being owned - we want the refcounter to do the delete
      * call */
-    cbdataReference(result);
     debug (79,3)("diskdFile with base %p allocating\n", result);
     return result;
 }
@@ -65,11 +64,9 @@ DiskdFile::operator new (size_t)
 void
 DiskdFile::operator delete (void *address)
 {
-    debug (79,3)("diskdFile with base %p deleting\n",address);
     DiskdFile *t = static_cast<DiskdFile *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (t);
+    debug (79,3)("diskdFile with base %p deleting\n",t);
+    cbdataFree(t);
 }
 
 DiskdFile::DiskdFile (char const *aPath, DiskdIOStrategy *anIO) : errorOccured (false), IO(anIO),
index fe86b4176a81ae4b652d42fd0817467f2aac039c..bd4520d31a8a500f98cc2819e7a312afe7935c29 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: DiskThreadsDiskFile.cc,v 1.1 2004/12/20 16:30:38 robertc Exp $
+ * $Id: DiskThreadsDiskFile.cc,v 1.2 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 79    Disk IO Routines
  * AUTHOR: Robert Collins
@@ -52,18 +52,14 @@ DiskThreadsDiskFile::operator new (size_t)
 {
     CBDATA_INIT_TYPE(DiskThreadsDiskFile);
     DiskThreadsDiskFile *result = cbdataAlloc(DiskThreadsDiskFile);
-    /* Mark result as being owned - we want the refcounter to do the delete
-     * call */
-    return cbdataReference(result);
+    return result;
 }
 
 void
 DiskThreadsDiskFile::operator delete (void *address)
 {
     DiskThreadsDiskFile *t = static_cast<DiskThreadsDiskFile *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (t);
+    cbdataFree(t);
 }
 
 DiskThreadsDiskFile::DiskThreadsDiskFile (char const *aPath, DiskThreadsIOStrategy *anIO):fd(-1), errorOccured (false), IO(anIO),
index 7518e380914acfedb82f8aa4ddab8d1209081655..28c5771bf5791884c55cbc3d99200ba394b064c5 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ESI.cc,v 1.11 2004/12/20 16:30:32 robertc Exp $
+ * $Id: ESI.cc,v 1.12 2004/12/21 17:28:28 robertc Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
@@ -291,10 +291,6 @@ ESIContext::operator new(size_t byteCount)
     assert (byteCount == sizeof (ESIContext));
     CBDATA_INIT_TYPE(ESIContext);
     ESIContext *result = cbdataAlloc(ESIContext);
-    /* Mark result as being owned - we want the refcounter to do the
-     * delete call
-     */
-    cbdataReference(result);
     return result;
 }
 
@@ -303,8 +299,6 @@ ESIContext::operator delete (void *address)
 {
     ESIContext *t = static_cast<ESIContext *>(address);
     cbdataFree(t);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (address);
 }
 
 void
@@ -637,7 +631,7 @@ ESIContext::send ()
     /* TODO: skip data until pos == next->readoff; */
     assert (thisNode->data == this);
     clientStreamNode *next = thisNode->next();
-    cbdataReference (this);
+    ESIContext *templock = cbdataReference (this);
     size_t len = 0;
 
     if (outbound.getRaw())
@@ -687,9 +681,8 @@ ESIContext::send ()
     if (len == 0)
         len = 1; /* tell the caller we sent something (because we sent headers */
 
-    ESIContext *temp = this;
 
-    cbdataReferenceDone (temp);
+    cbdataReferenceDone (templock);
 
     debug (86,5)("ESIContext::send: this=%p sent %d\n",this,len);
 
index 19d51989f66aa6e2939288071ca9b49ebac0e741..b8e45acc6827cf307edd5f94f54cbaa16e01b36e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ESIInclude.cc,v 1.4 2004/08/30 05:12:31 robertc Exp $
+ * $Id: ESIInclude.cc,v 1.5 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
@@ -233,10 +233,6 @@ ESIStreamContext::operator new(size_t byteCount)
     assert (byteCount == sizeof (ESIStreamContext));
     CBDATA_INIT_TYPE(ESIStreamContext);
     ESIStreamContext *result = cbdataAlloc(ESIStreamContext);
-    /* Mark result as being owned - we want the refcounter to do the
-     * delete call
-     */
-    cbdataReference(result);
     return result;
 }
 
@@ -245,8 +241,6 @@ ESIStreamContext::operator delete (void *address)
 {
     ESIStreamContext *t = static_cast<ESIStreamContext *>(address);
     cbdataFree(t);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (address);
 }
 
 ESIStreamContext *
index 034250a9d2cf92e5111a834fe05fc8923d6becea..7ee81d5098eccba75b8fd0453bd5eed572f2b866 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: IPInterception.cc,v 1.8 2004/12/21 16:17:59 hno Exp $
+ * $Id: IPInterception.cc,v 1.9 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 89    NAT / IP Interception 
  * AUTHOR: Robert Collins
index 118f51a831126c6dddff0c807b3022fdef03b7f7..c2f3dd48e691d4603a375c10ff7a6c22761d8c0e 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.am,v 1.100 2004/12/20 18:14:31 robertc Exp $
+#  $Id: Makefile.am,v 1.101 2004/12/21 17:28:29 robertc Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -937,7 +937,8 @@ tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc  tests/testAuth.h $(
 tests_testAuth_LDADD= \
        @AUTH_LINKOBJS@ @AUTH_OBJS@ \
        -L../lib -lmiscutil \
-       @SQUID_CPPUNIT_LA@
+       @SQUID_CPPUNIT_LA@ \
+       @SSLLIB@
 tests_testAuth_LDFLAGS = $(LIBADD_DL)
 tests_testAuth_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
        @AUTH_LINKOBJS@ \
index 692e9e72c19518ded96926a20f66a366b13a9330..66d7f89fe40fceb19e2dd825637451b478c087bc 100644 (file)
@@ -17,7 +17,7 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.in,v 1.331 2004/12/20 18:14:31 robertc Exp $
+#  $Id: Makefile.in,v 1.332 2004/12/21 17:28:29 robertc Exp $
 #
 #  Uncomment and customize the following to suit your needs:
 #
@@ -1440,7 +1440,8 @@ tests_testAuth_SOURCES = tests/testAuth.cc tests/testMain.cc  tests/testAuth.h $
 tests_testAuth_LDADD = \
        @AUTH_LINKOBJS@ @AUTH_OBJS@ \
        -L../lib -lmiscutil \
-       @SQUID_CPPUNIT_LA@
+       @SQUID_CPPUNIT_LA@ \
+       @SSLLIB@
 
 tests_testAuth_LDFLAGS = $(LIBADD_DL)
 tests_testAuth_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
index 21e66b8950cd7e6b7c328d76b538fffa3d22d063..8697dd4e70da642a5ab794a42b8b865976bc982c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cachemgr.cc,v 1.106 2004/12/21 16:17:59 hno Exp $
+ * $Id: cachemgr.cc,v 1.107 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 0     CGI Cache Manager
  * AUTHOR: Duane Wessels
index eadecb09109e91a7c3d41a77127b8c30462b839f..eba596bf46c78b4eac1c931d80e2b462ee16fda7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_request.cc,v 1.42 2004/12/20 16:30:35 robertc Exp $
+ * $Id: client_side_request.cc,v 1.43 2004/12/21 17:28:29 robertc Exp $
  * 
  * DEBUG: section 85    Client-side Request Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -91,18 +91,14 @@ ClientRequestContext::operator new (size_t size)
     assert (size == sizeof(ClientRequestContext));
     CBDATA_INIT_TYPE(ClientRequestContext);
     ClientRequestContext *result = cbdataAlloc(ClientRequestContext);
-    /* Mark result as being owned - we want the refcounter to do the delete
-     * call */
-    return cbdataReference(result);
+    return result;
 }
 
 void
 ClientRequestContext::operator delete (void *address)
 {
     ClientRequestContext *t = static_cast<ClientRequestContext *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (t);
+    cbdataFree(t);
 }
 
 /* Local functions */
@@ -143,18 +139,14 @@ ClientHttpRequest::operator new (size_t size)
     assert (size == sizeof (ClientHttpRequest));
     CBDATA_INIT_TYPE(ClientHttpRequest);
     ClientHttpRequest *result = cbdataAlloc(ClientHttpRequest);
-    /* Mark result as being owned - we want the refcounter to do the delete
-     * call */
-    return cbdataReference(result);
+    return result;
 }
 
 void
 ClientHttpRequest::operator delete (void *address)
 {
-    ClientHttpRequest *temp = static_cast<ClientHttpRequest *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (temp);
+    ClientHttpRequest *t = static_cast<ClientHttpRequest *>(address);
+    cbdataFree(t);
 }
 
 ClientHttpRequest::ClientHttpRequest() : loggingEntry_(NULL)
index faeb8a5d36b99a4d37418fa0a513839eb41394cb..0adf260f26292f0fb53ac6bf27c4a1af11e5c0ba 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: dnsserver.cc,v 1.68 2004/12/21 16:17:59 hno Exp $
+ * $Id: dnsserver.cc,v 1.69 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 0     DNS Resolver
  * AUTHOR: Harvest Derived
index 931cfa0eb665ad4dc030827f644ee05ed0711b38..f622a83cb226a0431ced9692da01ff5c94311f57 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: StoreFSufs.h,v 1.3 2004/12/20 16:30:45 robertc Exp $
+ * $Id: StoreFSufs.h,v 1.4 2004/12/21 17:28:29 robertc Exp $
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
  * ----------------------------------------------------------
@@ -36,8 +36,8 @@
 
 #include "squid.h"
 #include "ufscommon.h"
+#include "DiskIO/DiskIOModule.h"
 
-class DiskIOModule;
 
 template <class TheSwapDir>
 
index 3946e4af5a39db22a140718db90660c287290109..0fb895e82b8d8d8a62eac5e10f48219b923e61d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ufscommon.cc,v 1.1 2004/12/20 16:30:45 robertc Exp $
+ * $Id: ufscommon.cc,v 1.2 2004/12/21 17:28:30 robertc Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Robert Collins
@@ -50,18 +50,14 @@ RebuildState::operator new (size_t size)
     assert (size == sizeof(RebuildState));
     CBDATA_INIT_TYPE(RebuildState);
     RebuildState *result = cbdataAlloc(RebuildState);
-    /* Mark result as being owned - we want the refcounter to do the delete
-     * call */
-    return cbdataReference(result);
+    return result;
 }
 
 void
 RebuildState::operator delete (void *address)
 {
     RebuildState *t = static_cast<RebuildState *>(address);
-    cbdataFree(address);
-    /* And allow the memory to be freed */
-    cbdataReferenceDone (t);
+    cbdataFree(t);
 }
 
 RebuildState::~RebuildState()
index fdae0fc7f65e8d0486c52de430eae701d0e6b820..ecffe3f0369bb5962105a3e10d3710b2056559f2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.397 2004/12/21 16:18:00 hno Exp $
+ * $Id: main.cc,v 1.398 2004/12/21 17:28:29 robertc Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
index b435be0135c7ce156b7196fdcaefae894e47e5ff..31e7ce5ac2887a22ae98371e6d919bd5c2f06f74 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: squid.h,v 1.242 2004/12/21 16:18:00 hno Exp $
+ * $Id: squid.h,v 1.243 2004/12/21 17:28:29 robertc Exp $
  *
  * AUTHOR: Duane Wessels
  *
index a0a58d2d06245cc8ca5a50d479b0f2eb1d841920..1a9638dd8a6db795964f7100bde66570814808d7 100644 (file)
@@ -1,7 +1,7 @@
 #include "config.h"
 
-#include "testAuth.h"
 #include "squid.h"
+#include "testAuth.h"
 #include "authenticate.h"
 #include "AuthUserRequest.h"
 #include "AuthScheme.h"