]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Restored the #if USE_UNLINKD statements. These are used by the
authorhno <>
Wed, 31 May 2000 13:01:41 +0000 (13:01 +0000)
committerhno <>
Wed, 31 May 2000 13:01:41 +0000 (13:01 +0000)
--disable-unlinkd option.

src/cache_cf.cc
src/cf.data.pre
src/main.cc
src/protos.h
src/structs.h

index 173ab679932db0f73bcacf42c5dd6c021eb0bca9..83106cb84075c1f9ef73de0fefde6b484a2fdbcc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.348 2000/05/31 05:02:11 wessels Exp $
+ * $Id: cache_cf.cc,v 1.349 2000/05/31 07:01:41 hno Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -360,7 +360,9 @@ configDoConfigure(void)
 #if USE_DNSSERVERS
     requirePathnameExists("cache_dns_program", Config.Program.dnsserver);
 #endif
+#if USE_UNLINKD
     requirePathnameExists("unlinkd_program", Config.Program.unlinkd);
+#endif
     if (Config.Program.redirect)
        requirePathnameExists("redirect_program", Config.Program.redirect->key);
     if (Config.Program.authenticate)
index b89a7a795bc58346e4605da4e137b4457f483267..b80383eceded976eb431a2aa2fdde933c387c8a3 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.186 2000/05/31 05:04:04 wessels Exp $
+# $Id: cf.data.pre,v 1.187 2000/05/31 07:01:42 hno Exp $
 #
 #
 # SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -944,6 +944,7 @@ DOC_END
 
 
 NAME: unlinkd_program
+IFDEF: USE_UNLINKD
 TYPE: string
 DEFAULT: @DEFAULT_UNLINKD@
 LOC: Config.Program.unlinkd
index 600cdc352156b0dbc629213319df2d2fa62d8e7d..d5604654f7e0b80043192d2821f9089b88b49494 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.312 2000/05/31 05:02:11 wessels Exp $
+ * $Id: main.cc,v 1.313 2000/05/31 07:01:42 hno Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -494,7 +494,9 @@ mainInitialize(void)
 #endif
 
     if (!configured_once) {
+#if USE_UNLINKD
        unlinkdInit();
+#endif
        urlInitialize();
        cachemgrInit();
        statInit();
@@ -905,7 +907,9 @@ SquidShutdown(void *unused)
 #endif
     releaseServerSockets();
     commCloseAllSockets();
+#if USE_UNLINKD
     unlinkdClose();
+#endif
     storeDirSync();            /* Flush pending object writes/unlinks */
     storeDirWriteCleanLogs(0);
     PrintRusage();
index de62925e4e157785edcdf10eafbcee2a005da297..e7e213aca3244deb3b54cdd3ac72d76a71cd8836 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: protos.h,v 1.368 2000/05/31 05:02:11 wessels Exp $
+ * $Id: protos.h,v 1.369 2000/05/31 07:01:42 hno Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -1012,9 +1012,11 @@ extern void pumpStart(int, FwdState *, CWCB * callback, void *);
 extern int pumpMethod(method_t method);
 extern int pumpRestart(request_t *);
 
+#if USE_UNLINKD
 extern void unlinkdInit(void);
 extern void unlinkdClose(void);
 extern void unlinkdUnlink(const char *);
+#endif
 
 extern char *url_convert_hex(char *org_url, int allocate);
 extern char *url_escape(const char *url);
index 596e4193c9326928d311b32eb75946139130e46d..0963c9952d2a411ff86e36f53d23c806ab3ff2f4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: structs.h,v 1.337 2000/05/31 05:02:12 wessels Exp $
+ * $Id: structs.h,v 1.338 2000/05/31 07:01:42 hno Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -312,7 +312,9 @@ struct _SquidConfig {
 #if USE_ICMP
        char *pinger;
 #endif
+#if USE_UNLINKD
        char *unlinkd;
+#endif
     } Program;
 #if USE_DNSSERVERS
     int dnsChildren;