]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gcc -Wall
authorwessels <>
Fri, 9 May 1997 05:23:18 +0000 (05:23 +0000)
committerwessels <>
Fri, 9 May 1997 05:23:18 +0000 (05:23 +0000)
src/store.cc

index 1374b084ef4ae8caf1756360f07fa6bbe9a5d444..c0432de66e61b39ded078acb5a794dff188923d4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.230 1997/05/08 07:22:08 wessels Exp $
+ * $Id: store.cc,v 1.231 1997/05/08 23:23:18 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -795,7 +795,6 @@ storeCreateEntry(const char *url,
 {
     StoreEntry *e = NULL;
     MemObject *mem = NULL;
-    int i;
     debug(20, 3, "storeCreateEntry: '%s' icp flags=%x\n", url, flags);
 
     e = new_StoreEntry(WITH_MEMOBJ);
@@ -899,7 +898,7 @@ storeRegister(StoreEntry * e, int fd, STCB * handler, void *data)
     MemObject *mem = e->mem_obj;
     debug(20, 3, "storeRegister: FD %d '%s'\n", fd, e->key);
     if ((i = storeClientListSearch(mem, data)) < 0)
-       i = storeClientListAdd(e, fd, 0);
+       i = storeClientListAdd(e, data, 0);
     if (mem->clients[i].callback)
        fatal_dump("storeRegister: handler already exists");
     mem->clients[i].callback = handler;