]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
sbrk void to char * fix, and client_side_request header tweak
authorrobertc <>
Thu, 23 Jan 2003 07:59:44 +0000 (07:59 +0000)
committerrobertc <>
Thu, 23 Jan 2003 07:59:44 +0000 (07:59 +0000)
src/client_side_request.h
src/stat.cc

index 76ac6f03322febab6f98a2b96427589267890ce1..07c8f638f5105417a963d74139b47cc863170e6b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_request.h,v 1.2 2003/01/23 00:37:18 robertc Exp $
+ * $Id: client_side_request.h,v 1.3 2003/01/23 00:59:44 robertc Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -40,6 +40,7 @@
 /* client_side_request.c - client side request related routines (pure logic) */
 extern int clientBeginRequest(method_t, char const *, CSCB *, CSD *, void *, HttpHeader const *, char *, size_t);
 
+class MemObject;
 typedef class ClientHttpRequest clientHttpRequest;
 
 class ClientHttpRequest {
index 0aea4a3ed7b093e07c788ba8d42867d9cb297261..fe50c31db96575cfca2644b8374963189caeb41a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.366 2003/01/23 00:37:25 robertc Exp $
+ * $Id: stat.cc,v 1.367 2003/01/23 00:59:44 robertc Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -479,7 +479,7 @@ info_get(StoreEntry * sentry)
        statCPUUsage(60));
 #if HAVE_SBRK
     storeAppendPrintf(sentry, "\tProcess Data Segment Size via sbrk(): %d KB\n",
-       (sbrk(0) - sbrk_start) >> 10);
+       ((char *)sbrk(0) - (char *)sbrk_start) >> 10);
 #endif
     storeAppendPrintf(sentry, "\tMaximum Resident Size: %d KB\n",
        rusage_maxrss(&rusage));