]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Fixup cbdataFree uses.
authorrobertc <>
Tue, 11 Mar 2003 15:24:42 +0000 (15:24 +0000)
committerrobertc <>
Tue, 11 Mar 2003 15:24:42 +0000 (15:24 +0000)
Keywords:

cbdataFree should not be used with typecasts.

src/ESI.cc
src/ESISegment.cc
src/client_side_reply.cc
src/store_client.cc

index da9160beb9db292c686539d71cbafaf8e5ad1469..0dd49229b49ea584773afa99e93ca9fc8461b5ba 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ESI.cc,v 1.1 2003/03/10 04:56:30 robertc Exp $
+ * $Id: ESI.cc,v 1.2 2003/03/11 08:24:42 robertc Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
@@ -2422,7 +2422,7 @@ esiRemove::operator new(size_t byteCount)
 void
 esiRemove::operator delete (void *address)
 {
-    cbdataFree ((esiRemove *)address);
+    cbdataFree (address);
 }
 
 void
@@ -2772,7 +2772,7 @@ esiAttempt::operator new(size_t byteCount)
 void
 esiAttempt::operator delete (void *address)
 {
-    cbdataFree ((esiAttempt *)address);
+    cbdataFree (address);
 }
 
 #endif
@@ -2797,7 +2797,7 @@ esiExcept::operator new(size_t byteCount)
 void
 esiExcept::operator delete (void *address)
 {
-    cbdataFree ((esiExcept *)address);
+    cbdataFree (address);
 }
 
 #endif
@@ -2822,7 +2822,7 @@ esiVar::operator new(size_t byteCount)
 void
 esiVar::operator delete (void *address)
 {
-    cbdataFree ((esiVar *)address);
+    cbdataFree (address);
 }
 
 #endif
@@ -2876,7 +2876,7 @@ esiVarState::operator new(size_t byteCount)
 void
 esiVarState::operator delete (void *address)
 {
-    cbdataFree ((esiVarState *)address);
+    cbdataFree (address);
 }
 
 void
@@ -3947,7 +3947,7 @@ esiOtherwise::operator new(size_t byteCount)
 void
 esiOtherwise::operator delete (void *address)
 {
-    cbdataFree ((esiOtherwise *)address);
+    cbdataFree (address);
 }
 
 #endif
index 5b53e561895b0bd3d9f0514acc839a1412170c7c..8d75c3e2895c8957d3c9cc06089d61c3e0c605f2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ESISegment.cc,v 1.1 2003/03/10 04:56:36 robertc Exp $
+ * $Id: ESISegment.cc,v 1.2 2003/03/11 08:24:42 robertc Exp $
  *
  * DEBUG: section 86    ESI processing
  * AUTHOR: Robert Collins
@@ -163,7 +163,7 @@ ESISegment::operator new(size_t byteCount)
 void
 ESISegment::operator delete (void *address)
 {
-    cbdataFree ((ESISegment *)address);
+    cbdataFree (address);
 }
 
 void
index dfe579d52c3874df1fec3393e00ab074d07e1d7c..beb732e609bdbab7cef688bca015902f02c51f80 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.45 2003/03/10 04:56:37 robertc Exp $
+ * $Id: client_side_reply.cc,v 1.46 2003/03/11 08:24:42 robertc Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -250,7 +250,7 @@ clientReplyContext::operator new (size_t byteCount)
 void
 clientReplyContext::operator delete (void *address)
 {
-    cbdataFree ((clientReplyContext *)address);
+    cbdataFree (address);
 }
 
 
index 81c4237730d696c84cfb3a0c3e25eaa17fcee097..180c7763ee5da2b972e7bf66a6fc29e6c75c07da 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_client.cc,v 1.125 2003/03/04 01:40:30 robertc Exp $
+ * $Id: store_client.cc,v 1.126 2003/03/11 08:24:43 robertc Exp $
  *
  * DEBUG: section 90    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -76,7 +76,7 @@ store_client::operator new (size_t byteCount)
 void
 store_client::operator delete (void *address)
 {
-    cbdataFree ((store_client *)address);
+    cbdataFree (address);
 }
 
 bool