]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed unnecessary extern declarations.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 4 Oct 2012 09:14:06 +0000 (11:14 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 4 Oct 2012 09:14:06 +0000 (11:14 +0200)
Changed mismatching class/struct declaration in fde.h
Created default constructor for _fde_disk and moved there proper initialization
Removed some dead function declarations

42 files changed:
src/AuthReg.h
src/HttpHdrScTarget.cc
src/HttpRequest.h
src/Server.cc
src/String.cc
src/adaptation/Elements.h
src/adaptation/Service.h
src/adaptation/ServiceGroups.h
src/adaptation/ecap/ServiceRep.h
src/client_side.cc
src/client_side_reply.cc
src/client_side_request.cc
src/esi/Esi.cc
src/fde.h
src/fqdncache.h
src/ip/Address.h
src/ip/tools.h
src/ipc/FdNotes.h
src/ipc/SharedListen.h
src/ipc/StartListening.h
src/ipc/UdsOp.h
src/log/File.h
src/log/ModDaemon.h
src/log/ModStdio.h
src/log/ModSyslog.h
src/log/ModTcp.h
src/log/ModUdp.h
src/log/access_log.h
src/main.cc
src/mem.cc
src/mgr/CountersAction.cc
src/mgr/InfoAction.cc
src/mgr/IntervalAction.cc
src/mgr/IoAction.cc
src/mgr/ServiceTimesAction.cc
src/repl/heap/store_heap_replacement.h
src/snmp/Forwarder.h
src/snmp/Response.h
src/stat.cc
src/tests/stub_store.cc
src/tools.cc
src/tunnel.cc

index 08c57380456ceec61ae0357d813cac46748c95b1..a101d42870e26163148188cb4756c27ecffa569f 100644 (file)
@@ -36,7 +36,7 @@ namespace Auth
 
 #if USE_AUTH
 /// Initialize Auth subsystem
-extern void Init(void);
+void Init(void);
 #else /* USE_AUTH */
 inline void Init(void) {} /* NOP if not USE_AUTH */
 #endif /* USE_AUTH */
index 41465be3a0ee0990ef53468e045284b39a08e0f5..bf7a26288d3b762743d264317820064f1f151253 100644 (file)
@@ -37,7 +37,7 @@
 #include "HttpHdrSc.h"
 #include "StatHist.h"
 
-extern http_hdr_sc_type &operator++ (http_hdr_sc_type &aHeader);
+http_hdr_sc_type &operator++ (http_hdr_sc_type &aHeader);
 /* copies non-extant fields from new_sc to this sc */
 void
 HttpHdrScTarget::mergeWith(const HttpHdrScTarget * new_sc)
index 9c760f1ae7c06c452592664b454a9ba53562c6e3..2f8ef03ba35bc136d48c0a64f497b5b4ae100f22 100644 (file)
@@ -56,7 +56,6 @@
 class ConnStateData;
 
 /*  Http Request */
-//DEAD?: extern int httpRequestHdrAllowedByName(http_hdr_type id);
 void httpRequestPack(void *obj, Packer *p);
 
 class HttpHdrRange;
index a51b129697c51aa306aa0cdae04883740b9b10be..619b9f3b32ce463f0effbcfbb3e5457601219516 100644 (file)
@@ -57,7 +57,7 @@
 #endif
 
 // implemented in client_side_reply.cc until sides have a common parent
-extern void purgeEntriesByUrl(HttpRequest * req, const char *url);
+void purgeEntriesByUrl(HttpRequest * req, const char *url);
 
 ServerStateData::ServerStateData(FwdState *theFwdState): AsyncJob("ServerStateData"),
         requestSender(NULL),
index 842a07c7d6f33c6edcd6e34ebe4a28eca0d4fa58..e5ff7a2f5d356493fd67a706acbc531f5066f7a4 100644 (file)
@@ -303,7 +303,7 @@ StringRegistry::remove(String const *entry)
 
 StringRegistry StringRegistry::Instance_;
 
-extern String::size_type memStringCount();
+String::size_type memStringCount();
 
 void
 StringRegistry::Stat(StoreEntry *entry)
index 8bd39549bc24ce34c0653dd257fa5d9729640cb9..60a16738c775d4821400580b4e2966a0b99b1409 100644 (file)
@@ -11,8 +11,8 @@ typedef enum { pointNone, pointPreCache, pointPostCache } VectPoint;
 typedef enum { srvBlock, srvBypass, srvWait, srvForce} SrvBehaviour;
 
 extern const char *crlf;
-extern const char *methodStr(Method); // TODO: make into a stream operator?
-extern const char *vectPointStr(VectPoint); // TODO: make into a stream op?
+const char *methodStr(Method); // TODO: make into a stream operator?
+const char *vectPointStr(VectPoint); // TODO: make into a stream op?
 
 } // namespace Adaptation
 
index 6679a7f8a493c5d17dd14348b6192daf6d5d6b73..87c31f57d791facd5a1196ab057b37fbed885882 100644 (file)
@@ -61,11 +61,11 @@ private:
 typedef Service::Pointer ServicePointer;
 
 typedef Vector<Adaptation::ServicePointer> Services;
-extern Services &AllServices();
-extern ServicePointer FindService(const Service::Id &key);
+Services &AllServices();
+ServicePointer FindService(const Service::Id &key);
 
 /// detach all adaptation services from current configuration
-extern void DetachServices();
+void DetachServices();
 
 } // namespace Adaptation
 
index d53fb79dbf30643251659a217c44f85a75885390..b21a417401dc3ae1c010b237cdf33a6bcd08c44e 100644 (file)
@@ -142,8 +142,8 @@ std::ostream &operator <<(std::ostream &os, const ServicePlan &p)
 }
 
 typedef Vector<ServiceGroupPointer> Groups;
-extern Groups &AllGroups();
-extern ServiceGroupPointer FindGroup(const ServiceGroup::Id &id);
+Groups &AllGroups();
+ServiceGroupPointer FindGroup(const ServiceGroup::Id &id);
 
 } // namespace Adaptation
 
index b21179b97bf5fd6f391371639f6969801781903f..8f1001331e028ba1bfbb3ca603215697f80bc6fc 100644 (file)
@@ -49,15 +49,15 @@ private:
 };
 
 /// register loaded eCAP module service
-extern void RegisterAdapterService(const ServiceRep::AdapterService& adapterService);
+void RegisterAdapterService(const ServiceRep::AdapterService& adapterService);
 /// unregister loaded eCAP module service by service uri
-extern void UnregisterAdapterService(const String& serviceUri);
+void UnregisterAdapterService(const String& serviceUri);
 
 /// returns loaded eCAP module service by service uri
-extern ServiceRep::AdapterService FindAdapterService(const String& serviceUri);
+ServiceRep::AdapterService FindAdapterService(const String& serviceUri);
 
 /// check for loaded eCAP services without matching ecap_service in squid.conf
-extern void CheckUnusedAdapterServices(const Services& services);
+void CheckUnusedAdapterServices(const Services& services);
 } // namespace Ecap
 } // namespace Adaptation
 
index af885f556b042c4f9d9cb9d9c1ed9b35dfaea459..42cd35f48fba10207beb77113e52ad7286aa2a8d 100644 (file)
@@ -1896,9 +1896,9 @@ ClientSocketContext::writeComplete(const Comm::ConnectionPointer &conn, char *bu
     }
 }
 
-extern "C" CSR clientGetMoreData;
-extern "C" CSS clientReplyStatus;
-extern "C" CSD clientReplyDetach;
+SQUIDCEXTERN CSR clientGetMoreData;
+SQUIDCEXTERN CSS clientReplyStatus;
+SQUIDCEXTERN CSD clientReplyDetach;
 
 static ClientSocketContext *
 parseHttpRequestAbort(ConnStateData * csd, const char *uri)
index 4080026a75dc0068a7c786c6015e4c2c90f1143f..befef0d35e47f0af3e49f33d998181a682b46df7 100644 (file)
@@ -76,7 +76,7 @@ CBDATA_CLASS_INIT(clientReplyContext);
 
 /* Local functions */
 extern "C" CSS clientReplyStatus;
-extern ErrorState *clientBuildError(err_type, http_status, char const *, Ip::Address &, HttpRequest *);
+ErrorState *clientBuildError(err_type, http_status, char const *, Ip::Address &, HttpRequest *);
 
 /* privates */
 
@@ -433,8 +433,8 @@ clientReplyContext::handleIMSReply(StoreIOBuffer result)
     }
 }
 
-extern "C" CSR clientGetMoreData;
-extern "C" CSD clientReplyDetach;
+SQUIDCEXTERN CSR clientGetMoreData;
+SQUIDCEXTERN CSD clientReplyDetach;
 
 /**
  * clientReplyContext::cacheHit Should only be called until the HTTP reply headers
index 593e4114fa6ccb0d8b9712a32a97f3a8576e6898..a4df356dd6e8a15197e5025fc3d87db98945d1e4 100644 (file)
@@ -101,7 +101,7 @@ static const char *const crlf = "\r\n";
 static void clientFollowXForwardedForCheck(allow_t answer, void *data);
 #endif /* FOLLOW_X_FORWARDED_FOR */
 
-extern ErrorState *clientBuildError(err_type, http_status, char const *url, Ip::Address &, HttpRequest *);
+ErrorState *clientBuildError(err_type, http_status, char const *url, Ip::Address &, HttpRequest *);
 
 CBDATA_CLASS_INIT(ClientRequestContext);
 
@@ -131,9 +131,9 @@ static int clientHierarchical(ClientHttpRequest * http);
 static void clientInterpretRequestHeaders(ClientHttpRequest * http);
 static RH clientRedirectDoneWrapper;
 static void checkNoCacheDoneWrapper(allow_t, void *);
-extern "C" CSR clientGetMoreData;
-extern "C" CSS clientReplyStatus;
-extern "C" CSD clientReplyDetach;
+SQUIDCEXTERN CSR clientGetMoreData;
+SQUIDCEXTERN CSS clientReplyStatus;
+SQUIDCEXTERN CSD clientReplyDetach;
 static void checkFailureRatio(err_type, hier_code);
 
 ClientRequestContext::~ClientRequestContext()
@@ -1533,8 +1533,8 @@ ClientHttpRequest::loggingEntry(StoreEntry *newEntry)
  * the callout.  This is strictly for convenience.
  */
 
-extern tos_t aclMapTOS (acl_tos * head, ACLChecklist * ch);
-extern nfmark_t aclMapNfmark (acl_nfmark * head, ACLChecklist * ch);
+tos_t aclMapTOS (acl_tos * head, ACLChecklist * ch);
+nfmark_t aclMapNfmark (acl_nfmark * head, ACLChecklist * ch);
 
 void
 ClientHttpRequest::doCallouts()
index 050a46e032426384a6d9814e9f6051d6f07aede6..a863a4f1ea37a00aa9af0af62bdd193ea87f17a1 100644 (file)
@@ -1448,7 +1448,7 @@ ESIContext::freeResources ()
     /* don't touch incoming, it's a pointer into buffered anyway */
 }
 
-extern ErrorState *clientBuildError (err_type, http_status, char const *, Ip::Address &, HttpRequest *);
+ErrorState *clientBuildError (err_type, http_status, char const *, Ip::Address &, HttpRequest *);
 
 /* This can ONLY be used before we have sent *any* data to the client */
 void
index e166675c1b91cc10bec6cb67224725a6e5fe417d..32123e7aaf6fc79847a9e5081cc95d8daacb2cd7 100644 (file)
--- a/src/fde.h
+++ b/src/fde.h
@@ -51,6 +51,7 @@ public:
     dwrite_q *write_q;
     dwrite_q *write_q_tail;
     off_t offset;
+    _fde_disk() { memset(this, 0, sizeof(_fde_disk)); }
 };
 
 class fde
@@ -112,7 +113,7 @@ public:
 #endif
     unsigned epoll_state;
 
-    struct _fde_disk disk;
+    _fde_disk disk;
     PF *read_handler;
     void *read_data;
     PF *write_handler;
@@ -166,7 +167,6 @@ private:
         clientInfo = NULL;
 #endif
         epoll_state = 0;
-        memset(&disk, 0, sizeof(_fde_disk));
         read_handler = NULL;
         read_data = NULL;
         write_handler = NULL;
index 0592a89f87c6fddde2ac2b9a7279f67ac1f231ff..ef64557a79c7f77fb9c0c54adece8c8cfbab02f4 100644 (file)
@@ -41,15 +41,12 @@ class wordlist;
 
 void fqdncache_init(void);
 void fqdnStats(StoreEntry *);
-//extern void fqdncacheReleaseInvalid(const char *);
-//extern int fqdncacheQueueDrain(void);
 void fqdncacheFreeMemory(void);
 void fqdncache_restart(void);
 void fqdncache_purgelru(void *);
 void fqdncacheAddEntryFromHosts(char *addr, wordlist * hostnames);
 
 const char *fqdncache_gethostbyaddr(const Ip::Address &, int flags);
-//extern const char *fqdnFromAddr(const Ip::Address &);
 void fqdncache_nbgethostbyaddr(const Ip::Address &, FQDNH *, void *);
 
 #endif /* SQUID_FQDNCACHE_H_ */
index ae0fc373690d6921ad78466e6e57ce2f19e28298..9ec57cba0f86a49e08e23ddddbc053b208880ad3 100644 (file)
@@ -402,6 +402,6 @@ public:
 
 } // namespace Ip
 
-extern void parse_IpAddress_list_token(Ip::Address_list **, char *);
+void parse_IpAddress_list_token(Ip::Address_list **, char *);
 
 #endif /* _SQUID_IP_IPADDRESS_H */
index 5555879e0ae458e62ead1365e6a5f14ad27c5f0f..cde6aa9ecd0946278605046cc7eb98df1535d3e5 100644 (file)
@@ -5,7 +5,7 @@ namespace Ip
 {
 
 /// Probe to discover IPv6 capabilities
-extern void ProbeTransport(void);
+void ProbeTransport(void);
 
 /* Squids notion of IPv6 stack types and state */
 #define IPV6_OFF  0
index e6bd01258aa83e2583b97789f37fda7006d3dd1f..1e5730c3c00d999bc6270c410624c8add986b5e2 100644 (file)
@@ -19,7 +19,7 @@ typedef enum { fdnNone, fdnHttpSocket, fdnHttpsSocket,
                fdnInIcpSocket, fdnInHtcpSocket, fdnEnd
              } FdNoteId;
 
-extern const char *FdNote(int fdNodeId); ///< converts FdNoteId into a string
+const char *FdNote(int fdNodeId); ///< converts FdNoteId into a string
 
 } // namespace Ipc;
 
index da584229817e3454e5eda7a98e7081fd8b555b64..bf7176896ec1717b0329f151e7af09f3e66e9624 100644 (file)
@@ -69,10 +69,10 @@ public:
 };
 
 /// prepare and send SharedListenRequest to Coordinator
-extern void JoinSharedListen(const OpenListenerParams &, AsyncCall::Pointer &);
+void JoinSharedListen(const OpenListenerParams &, AsyncCall::Pointer &);
 
 /// process Coordinator response to SharedListenRequest
-extern void SharedListenJoined(const SharedListenResponse &response);
+void SharedListenJoined(const SharedListenResponse &response);
 
 } // namespace Ipc;
 
index 89aa61f8dfdf29f61f77d7fef62a27f4478acfe0..58794c640dd506f7c0343ff53c7d2d3e703fdac2 100644 (file)
@@ -37,7 +37,7 @@ public:
 
 /// Depending on whether SMP is on, either ask Coordinator to send us
 /// the listening FD or open a listening socket directly.
-extern void StartListening(int sock_type, int proto, const Comm::ConnectionPointer &listenConn,
+void StartListening(int sock_type, int proto, const Comm::ConnectionPointer &listenConn,
                            FdNoteId fdNote, AsyncCall::Pointer &callback);
 
 } // namespace Ipc;
index 94164c0d62849a530202b9115b6813cd0c8e1f95..9c3b1eed136e07044e2c79b70fc2b8cafb811e38 100644 (file)
@@ -55,7 +55,7 @@ private:
 };
 
 /// converts human-readable filename path into UDS address
-extern struct sockaddr_un PathToAddress(const String &pathAddr);
+struct sockaddr_un PathToAddress(const String &pathAddr);
 
 // XXX: move UdsSender code to UdsSender.{cc,h}
 /// attempts to send an IPC message a few times, with a timeout
index 8ceb238eb9f8fdb49f4334ae95ede488efcafe45..97cf417e94abd6f460d0bf9c001b391ce4d7c36f 100644 (file)
@@ -50,13 +50,13 @@ public:
 };
 
 /* Legacy API */
-extern Logfile *logfileOpen(const char *path, size_t bufsz, int);
-extern void logfileClose(Logfile * lf);
-extern void logfileRotate(Logfile * lf);
-extern void logfileWrite(Logfile * lf, char *buf, size_t len);
-extern void logfileFlush(Logfile * lf);
-extern void logfilePrintf(Logfile * lf, const char *fmt,...) PRINTF_FORMAT_ARG2;
-extern void logfileLineStart(Logfile * lf);
-extern void logfileLineEnd(Logfile * lf);
+Logfile *logfileOpen(const char *path, size_t bufsz, int);
+void logfileClose(Logfile * lf);
+void logfileRotate(Logfile * lf);
+void logfileWrite(Logfile * lf, char *buf, size_t len);
+void logfileFlush(Logfile * lf);
+void logfilePrintf(Logfile * lf, const char *fmt,...) PRINTF_FORMAT_ARG2;
+void logfileLineStart(Logfile * lf);
+void logfileLineEnd(Logfile * lf);
 
 #endif /* SQUID_SRC_LOG_FILE_H */
index 02971ec8de6c4812f5e4b5043acb7ceccd321d4e..e7cd10ebcd7bdf19025e11a42bc1668d19a0ccf3 100644 (file)
@@ -34,6 +34,6 @@
 
 class Logfile;
 
-extern int logfile_mod_daemon_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
+int logfile_mod_daemon_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODDAEMON_H */
index 70368786411a2a0a8d057bc42b18a135fed5a89a..75c4e556b71b565d0c7e2f0616e8a4f7d0036d40 100644 (file)
@@ -34,6 +34,6 @@
 
 class Logfile;
 
-extern int logfile_mod_stdio_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
+int logfile_mod_stdio_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODSTDIO_H */
index f877a5b30e85a77c9acfd90519fb1e8d1b3eb472..ce5be486c8f804f07a6ed05c2007a0ac2bc4d335 100644 (file)
@@ -34,6 +34,6 @@
 
 class Logfile;
 
-extern int logfile_mod_syslog_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
+int logfile_mod_syslog_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODSYSLOG_H */
index 1d30e937dd71bee52f9422b31ce3bcf2594a706b..be577ded523e575d871f2f0c665fda2b700af2f0 100644 (file)
@@ -35,6 +35,6 @@
 
 class Logfile;
 
-extern int logfile_mod_tcp_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
+int logfile_mod_tcp_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODTCP_H */
index 5d35416849b034a741a9dd93eb764b826738d37e..faa3e9f739eab6b674439c59555d5557d6f1f307 100644 (file)
@@ -34,6 +34,6 @@
 
 class Logfile;
 
-extern int logfile_mod_udp_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
+int logfile_mod_udp_open(Logfile * lf, const char *path, size_t bufsz, int fatal_flag);
 
 #endif /* _SQUID_SRC_LOG_MODUDP_H */
index f64b665e0be957a47a34f757750a5c582fac2a2c..6a9a3057426271a1604a961f99aedb04bb7fdc62 100644 (file)
 #ifndef SQUID_LOG_ACCESS_LOG_H_
 #define SQUID_LOG_ACCESS_LOG_H_
 
-extern int logTypeIsATcpHit(log_type);
-extern void fvdbCountVia(const char *key);
-extern void fvdbCountForw(const char *key);
+int logTypeIsATcpHit(log_type);
+void fvdbCountVia(const char *key);
+void fvdbCountForw(const char *key);
 
 #if HEADERS_LOG
 class HttpRequestMethod;
-extern void headersLog(int cs, int pq, const HttpRequestMethod& m, void *data);
+void headersLog(int cs, int pq, const HttpRequestMethod& m, void *data);
 #endif
 
 #endif /* SQUID_LOG_ACCESS_LOG_H_ */
index c529051a84e17a1eb3a84f2497b046a1e4b3b5f5..a0e91a12b66e2cfd5a9808d625dc4fbb10a8acb8 100644 (file)
@@ -160,7 +160,7 @@ static int opt_install_service = FALSE;
 static int opt_remove_service = FALSE;
 static int opt_signal_service = FALSE;
 static int opt_command_line = FALSE;
-extern void WIN32_svcstatusupdate(DWORD, DWORD);
+void WIN32_svcstatusupdate(DWORD, DWORD);
 void WINAPI WIN32_svcHandler(DWORD);
 
 #endif
@@ -196,8 +196,8 @@ static void serverConnectionsClose(void);
 static void watch_child(char **);
 static void setEffectiveUser(void);
 #if MEM_GEN_TRACE
-extern void log_trace_done();
-extern void log_trace_init(char *);
+void log_trace_done();
+void log_trace_init(char *);
 #endif
 static void SquidShutdown(void);
 static void mainSetCwd(void);
index 4a947661ffbb9c4126168c68a10a190b55542019..678a49f3278cf0db6ce9b4b32c8293c9681ba593 100644 (file)
@@ -257,7 +257,6 @@ memAllocString(size_t net_size, size_t * gross_size)
     return pool ? pool->alloc() : xcalloc(1, net_size);
 }
 
-extern size_t memStringCount();
 size_t
 memStringCount()
 {
index 1727cb3e8ad775bdf9071601ac89ece31095488a..ef2aa6205c21d5310790424996c7491326c49238 100644 (file)
@@ -12,8 +12,8 @@
 #include "Store.h"
 #include "tools.h"
 
-extern void GetCountersStats(Mgr::CountersActionData& stats);
-extern void DumpCountersStats(Mgr::CountersActionData& stats, StoreEntry* sentry);
+void GetCountersStats(Mgr::CountersActionData& stats);
+void DumpCountersStats(Mgr::CountersActionData& stats, StoreEntry* sentry);
 
 Mgr::CountersActionData::CountersActionData()
 {
index 4c8f2441f7806c3269ae3af9a013c472426b96db..9f5aaa9fe80fe831203da94550e119e5f9b3be58 100644 (file)
@@ -19,9 +19,9 @@
 #include "Store.h"
 #include "tools.h"
 
-extern void GetInfo(Mgr::InfoActionData& stats);
-extern void DumpInfo(Mgr::InfoActionData& stats, StoreEntry* sentry);
-extern void DumpMallocStatistics(StoreEntry* sentry);
+void GetInfo(Mgr::InfoActionData& stats);
+void DumpInfo(Mgr::InfoActionData& stats, StoreEntry* sentry);
+void DumpMallocStatistics(StoreEntry* sentry);
 
 Mgr::InfoActionData::InfoActionData()
 {
index c52c6dad2c16fafab7bbb77873bd99caac829d82..364dbe1eb31e81f9f1f02de9043186196826ef8f 100644 (file)
@@ -12,8 +12,8 @@
 #include "Store.h"
 #include "tools.h"
 
-extern void GetAvgStat(Mgr::IntervalActionData& stats, int minutes, int hours);
-extern void DumpAvgStat(Mgr::IntervalActionData& stats, StoreEntry* sentry);
+void GetAvgStat(Mgr::IntervalActionData& stats, int minutes, int hours);
+void DumpAvgStat(Mgr::IntervalActionData& stats, StoreEntry* sentry);
 
 Mgr::IntervalActionData::IntervalActionData()
 {
index 06cfbbd2e3e011bc593fcae177193c76d5ef3833..0c0b9d225361c066abb3184374c323fe59a5c598 100644 (file)
@@ -13,8 +13,8 @@
 #include "Store.h"
 #include "tools.h"
 
-extern void GetIoStats(Mgr::IoActionData& stats);
-extern void DumpIoStats(Mgr::IoActionData& stats, StoreEntry* sentry);
+void GetIoStats(Mgr::IoActionData& stats);
+void DumpIoStats(Mgr::IoActionData& stats, StoreEntry* sentry);
 
 Mgr::IoActionData::IoActionData()
 {
index 8ae260c145231502097a90ec723ab13d3f02c2ea..de630cc538a0545847f395ea2cefd1cf53cf9daf 100644 (file)
@@ -11,8 +11,8 @@
 #include "Store.h"
 #include "tools.h"
 
-extern void GetServiceTimesStats(Mgr::ServiceTimesActionData& stats);
-extern void DumpServiceTimesStats(Mgr::ServiceTimesActionData& stats, StoreEntry* sentry);
+void GetServiceTimesStats(Mgr::ServiceTimesActionData& stats);
+void DumpServiceTimesStats(Mgr::ServiceTimesActionData& stats, StoreEntry* sentry);
 
 Mgr::ServiceTimesActionData::ServiceTimesActionData()
 {
index 9208cee7e971915af146eeeb55d0d3a30d033cb5..44d98b1a3628bfec9e92dc53d9bac5b0d3c5d770 100644 (file)
@@ -1,13 +1,10 @@
-/*
- * $Id$
- */
 #ifndef _SQUIDINC_STORE_HEAP_REPLACEMENT_H
 #define _SQUIDINC_STORE_HEAP_REPLACEMENT_H
 
 #include "heap.h"
 
-extern heap_key HeapKeyGen_StoreEntry_LFUDA(void *entry, double age);
-extern heap_key HeapKeyGen_StoreEntry_GDSF(void *entry, double age);
-extern heap_key HeapKeyGen_StoreEntry_LRU(void *entry, double age);
+heap_key HeapKeyGen_StoreEntry_LFUDA(void *entry, double age);
+heap_key HeapKeyGen_StoreEntry_GDSF(void *entry, double age);
+heap_key HeapKeyGen_StoreEntry_LRU(void *entry, double age);
 
 #endif /* _SQUIDINC_STORE_HEAP_REPLACEMENT_H */
index fe7ec6e46df1ce4fa5a654d94a4d6dcee2bd6f2e..bdb9421d70ee352b5c153b92a4c0fb86457aa6c2 100644 (file)
@@ -42,7 +42,7 @@ private:
     CBDATA_CLASS2(Forwarder);
 };
 
-extern void SendResponse(unsigned int requestId, const Pdu& pdu);
+void SendResponse(unsigned int requestId, const Pdu& pdu);
 
 } // namespace Snmp
 
index e6a2dc26b98761b185f553f1d00e2aed37c00400..67941f7d853b5fe5e65b059cd2ecfc3aea69e392 100644 (file)
@@ -31,7 +31,7 @@ public:
     Pdu pdu; ///< SNMP protocol data unit
 };
 
-extern std::ostream& operator << (std::ostream& os, const Response& response);
+std::ostream& operator << (std::ostream& os, const Response& response);
 
 } // namespace Snmp
 
index d65681eeeeaf1d8e4aef97848503dfe71627bf2b..585688e1171d8732c11925188c6fbe13b272b4bb 100644 (file)
@@ -1936,7 +1936,7 @@ statCPUUsage(int minutes)
                                tvSubDsec(CountHist[minutes].timestamp, CountHist[0].timestamp));
 }
 
-extern double
+double
 statRequestHitRatio(int minutes)
 {
     assert(minutes < N_COUNT_HIST);
@@ -1946,7 +1946,7 @@ statRequestHitRatio(int minutes)
                                CountHist[minutes].client_http.requests);
 }
 
-extern double
+double
 statRequestHitMemoryRatio(int minutes)
 {
     assert(minutes < N_COUNT_HIST);
@@ -1956,7 +1956,7 @@ statRequestHitMemoryRatio(int minutes)
                                CountHist[minutes].client_http.hits);
 }
 
-extern double
+double
 statRequestHitDiskRatio(int minutes)
 {
     assert(minutes < N_COUNT_HIST);
@@ -1966,7 +1966,7 @@ statRequestHitDiskRatio(int minutes)
                                CountHist[minutes].client_http.hits);
 }
 
-extern double
+double
 statByteHitRatio(int minutes)
 {
     size_t s;
index 067ffc029c2c7c88003eb86e73eb77924f01b3e5..50ee2f7b9cf080ddf6d50b4db8cff936ee120f9a 100644 (file)
@@ -116,7 +116,7 @@ void storeEntryReplaceObject(StoreEntry *, HttpReply *) STUB
 StoreEntry *storeGetPublic(const char *uri, const HttpRequestMethod& method) STUB_RETVAL(NULL)
 StoreEntry *storeGetPublicByRequest(HttpRequest * request) STUB_RETVAL(NULL)
 StoreEntry *storeGetPublicByRequestMethod(HttpRequest * request, const HttpRequestMethod& method) STUB_RETVAL(NULL)
-extern StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(NULL)
+StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(NULL)
 void storeInit(void) STUB
 void storeConfigure(void) STUB
 void storeFreeMemory(void) STUB
index 3676d0ad7e83f897d49c25f176e8a8a136007989..9b0a5d577daefae21655617ba892078ec9fe39bb 100644 (file)
@@ -82,8 +82,8 @@ static void fatal_common(const char *);
 static void fatalvf(const char *fmt, va_list args);
 static void mail_warranty(void);
 #if MEM_GEN_TRACE
-extern void log_trace_done();
-extern void log_trace_init(char *);
+void log_trace_done();
+void log_trace_init(char *);
 #endif
 static void restoreCapabilities(int keep);
 int DebugSignal = -1;
index c5099fa4d571719b782c40b5d48f3bfc7a037f6e..e1fb9a96e4d1e3c9867b0599896020282b098810 100644 (file)
@@ -623,8 +623,8 @@ tunnelConnectDone(const Comm::ConnectionPointer &conn, comm_err_t status, int xe
     commSetConnTimeout(conn, Config.Timeout.read, timeoutCall);
 }
 
-extern tos_t GetTosToServer(HttpRequest * request);
-extern nfmark_t GetNfmarkToServer(HttpRequest * request);
+tos_t GetTosToServer(HttpRequest * request);
+nfmark_t GetNfmarkToServer(HttpRequest * request);
 
 void
 tunnelStart(ClientHttpRequest * http, int64_t * size_ptr, int *status_ptr)