]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use %ld in printf to avoid compiler warnings.
authorwessels <>
Wed, 17 Apr 2002 04:43:38 +0000 (04:43 +0000)
committerwessels <>
Wed, 17 Apr 2002 04:43:38 +0000 (04:43 +0000)
src/store_client.cc
src/wccp.cc

index 5e8a3348e35962ae8d4da1b4dddc34cd6d7edd4e..47c8d99d333798a5011bfaba7acb3e7ba3107efb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_client.cc,v 1.108 2002/04/13 23:07:51 hno Exp $
+ * $Id: store_client.cc,v 1.109 2002/04/16 22:43:38 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -573,7 +573,7 @@ off_t
 storeLowestMemReaderOffset(const StoreEntry * entry)
 {
     const MemObject *mem = entry->mem_obj;
-    off_t lowest = mem->inmem_hi + 1;
+    off_t lowest = mem->inmem_hi;
     store_client *sc;
     dlink_node *nx = NULL;
     dlink_node *node;
index 3f2a2f2924e09d0464d48ce4e08c78421d86b268..45f5583515a32c03db38d1c99dfd868430b9ed2b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wccp.cc,v 1.20 2002/03/27 18:00:55 wessels Exp $
+ * $Id: wccp.cc,v 1.21 2002/04/16 22:43:38 wessels Exp $
  *
  * DEBUG: section 80    WCCP Support
  * AUTHOR: Glenn Chisholm
@@ -225,7 +225,7 @@ wccpHandleUdp(int sock, void *not_used)
        0,
        (struct sockaddr *) &from,
        &from_len);
-    debug(80, 3) ("wccpHandleUdp: %d bytes WCCP pkt from %s: type=%d, version=%d, change=%d, id=%d, number=%d\n",
+    debug(80, 3) ("wccpHandleUdp: %d bytes WCCP pkt from %s: type=%ld, version=%ld, change=%ld, id=%ld, number=%ld\n",
        len,
        inet_ntoa(from.sin_addr),
        ntohl(wccp_i_see_you.type),