]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Fri, 3 Nov 2000 01:34:48 +0000 (01:34 +0000)
committerwessels <>
Fri, 3 Nov 2000 01:34:48 +0000 (01:34 +0000)
 - `SD' undeclared (first use in this function)

src/fs/coss/store_dir_coss.cc

index 5bc928dbcecee3e79fee2359a2f8a24eb4b2f384..29ab53e34911c0cdc309d9ad0d49944bcedfc8fa 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_coss.cc,v 1.8 2000/11/01 03:35:48 wessels Exp $
+ * $Id: store_dir_coss.cc,v 1.9 2000/11/02 18:34:48 wessels Exp $
  *
  * DEBUG: section 81    Store COSS Directory Routines
  * AUTHOR: Eric Stern
@@ -193,7 +193,6 @@ static void
 storeCossRebuildFromSwapLog(void *data)
 {
     RebuildState *rb = data;
-    SwapDir *sd = rb->sd;
     StoreEntry *e = NULL;
     storeSwapLogData s;
     size_t ss = sizeof(storeSwapLogData);
@@ -237,7 +236,7 @@ storeCossRebuildFromSwapLog(void *data)
                }
                storeRelease(e);
                /* Fake an unlink here, this is a bad hack :( */
-               storeCossRemove(sd, e);
+               storeCossRemove(rb->sd, e);
                rb->counts.objcount--;
                rb->counts.cancelcount++;
            }
@@ -253,7 +252,7 @@ storeCossRebuildFromSwapLog(void *data)
        if ((++rb->counts.scancount & 0xFFF) == 0) {
            struct stat sb;
            if (0 == fstat(fileno(rb->log), &sb))
-               storeRebuildProgress(SD->index,
+               storeRebuildProgress(rb->sd->index,
                    (int) sb.st_size / ss, rb->n_read);
        }
        if (EBIT_TEST(s.flags, KEY_PRIVATE)) {