From: Amos Jeffries Date: Sat, 19 Jul 2008 10:16:48 +0000 (-0600) Subject: CacheManager cleanup: compile warnings X-Git-Tag: SQUID_3_1_0_1~49^2~133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f69d92657641faf5dfb8e348cf72324bb2bb5fb7;p=thirdparty%2Fsquid.git CacheManager cleanup: compile warnings In general netdb internals do not even exist unless ICMP support is built. netdbRegisterWithCacheManager is no exception. --- diff --git a/src/net_db.cc b/src/net_db.cc index 666b204a4c..8fbedae2c1 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -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;