]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Conditionally remove the sb variable definitions when their uses
authorhno <>
Sun, 7 Apr 2002 17:52:33 +0000 (17:52 +0000)
committerhno <>
Sun, 7 Apr 2002 17:52:33 +0000 (17:52 +0000)
are not available on the platform (fchmod)

src/fs/aufs/store_dir_aufs.cc
src/fs/coss/store_dir_coss.cc
src/fs/diskd/store_dir_diskd.cc
src/fs/ufs/store_dir_ufs.cc

index 08966bf3b486cc04f3a4ec261fc68e32436dc25c..85e2e384ff5991b02e98673b0c43865c8b08562d 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_aufs.cc,v 1.43 2002/04/06 15:08:05 hno Exp $
+ * $Id: store_dir_aufs.cc,v 1.44 2002/04/07 11:52:33 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -954,7 +954,9 @@ static int
 storeAufsDirWriteCleanStart(SwapDir * sd)
 {
     struct _clean_state *state = xcalloc(1, sizeof(*state));
+#if HAVE_FCHMOD
     struct stat sb;
+#endif
     sd->log.clean.write = NULL;
     sd->log.clean.state = NULL;
     state->new = xstrdup(storeAufsDirSwapLogFile(sd, ".clean"));
index e5e956f10de9def77bfe63229d96296936de1cbc..ca81999184d56b4cb33c0f053a18058c99f64a2b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_coss.cc,v 1.32 2002/04/06 08:49:43 adrian Exp $
+ * $Id: store_dir_coss.cc,v 1.33 2002/04/07 11:52:33 hno Exp $
  *
  * DEBUG: section 81    Store COSS Directory Routines
  * AUTHOR: Eric Stern
@@ -480,7 +480,9 @@ storeCossDirWriteCleanStart(SwapDir * sd)
 {
     CossInfo *cs = (CossInfo *) sd->fsdata;
     struct _clean_state *state = xcalloc(1, sizeof(*state));
+#if HAVE_FCHMOD
     struct stat sb;
+#endif
     state->new = xstrdup(storeCossDirSwapLogFile(sd, ".clean"));
     state->fd = file_open(state->new, O_WRONLY | O_CREAT | O_TRUNC);
     if (state->fd < 0) {
index a21b131124229bba2bafad46b18709dd35ac30ba..9305f625acc42ddc61b27d3ba4c75cd425c4dcd8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_diskd.cc,v 1.63 2002/04/06 12:54:42 hno Exp $
+ * $Id: store_dir_diskd.cc,v 1.64 2002/04/07 11:52:33 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -1137,7 +1137,9 @@ static int
 storeDiskdDirWriteCleanStart(SwapDir * sd)
 {
     struct _clean_state *state = xcalloc(1, sizeof(*state));
+#if HAVE_FCHMOD
     struct stat sb;
+#endif
     sd->log.clean.write = NULL;
     sd->log.clean.state = NULL;
     state->new = xstrdup(storeDiskdDirSwapLogFile(sd, ".clean"));
index 6839a650c5a0c21ddfcfc2249d7d1fd9f5249fd6..818fbec97f5d403d5e1eba679cea512cd1ee8d01 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.42 2002/04/06 08:49:44 adrian Exp $
+ * $Id: store_dir_ufs.cc,v 1.43 2002/04/07 11:52:34 hno Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -952,7 +952,9 @@ static int
 storeUfsDirWriteCleanStart(SwapDir * sd)
 {
     struct _clean_state *state = xcalloc(1, sizeof(*state));
+#if HAVE_FCHMOD
     struct stat sb;
+#endif
     sd->log.clean.write = NULL;
     sd->log.clean.state = NULL;
     state->new = xstrdup(storeUfsDirSwapLogFile(sd, ".clean"));