]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CacheManager cleanup: compile warnings
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 19 Jul 2008 10:16:48 +0000 (04:16 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 19 Jul 2008 10:16:48 +0000 (04:16 -0600)
In general netdb internals do not even exist unless ICMP
support is built.

netdbRegisterWithCacheManager is no exception.

src/net_db.cc

index 666b204a4c2b2c3e980c5291f1090bfbe42b2482..8fbedae2c114ce098fd5605546b81f7a371f720a 100644 (file)
@@ -884,17 +884,16 @@ netdbExchangeDone(void *data)
     cbdataFree(ex);
 }
 
-#endif /* USE_ICMP */
-
 static void
-netdbRegisterWitHCacheManager(void)
+netdbRegisterWithCacheManager(void)
 {
-#if USE_ICMP
     CacheManager::GetInstance()->
         registerAction("netdb", "Network Measurement Database", netdbDump, 0, 1);
-#endif
 }
 
+#endif /* USE_ICMP */
+
+
 /* PUBLIC FUNCTIONS */
 
 void
@@ -903,7 +902,7 @@ netdbInit(void)
 #if USE_ICMP
     int n;
 
-    netdbRegisterWitHCacheManager();
+    netdbRegisterWithCacheManager();
 
     if (addr_table)
         return;