From edfab338731042dc8c0f853a7d2b7835ed661639 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Wed, 9 Jul 2008 22:33:02 +0200 Subject: [PATCH] Refactored actions for comm_poll to Cache Manager singleton API. --- src/comm_poll.cc | 9 +++++---- src/comm_poll.h | 2 +- src/main.cc | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/comm_poll.cc b/src/comm_poll.cc index da2fc42c2a..95e5084eaf 100644 --- a/src/comm_poll.cc +++ b/src/comm_poll.cc @@ -606,11 +606,12 @@ comm_select_init(void) {} void -commPollRegisterWithCacheManager(CacheManager & manager) +commPollRegisterWithCacheManager(void) { - manager.registerAction("comm_poll_incoming", - "comm_incoming() stats", - commIncomingStats, 0, 1); + CacheManager::GetInstance()-> + registerAction("comm_poll_incoming", + "comm_incoming() stats", + commIncomingStats, 0, 1); } diff --git a/src/comm_poll.h b/src/comm_poll.h index 3c0f69321e..93f7b7a72f 100644 --- a/src/comm_poll.h +++ b/src/comm_poll.h @@ -38,6 +38,6 @@ class CacheManager; -extern void commPollRegisterWithCacheManager(CacheManager & manager); +extern void commPollRegisterWithCacheManager(void); #endif /* SQUID_COMM_POLL_H */ diff --git a/src/main.cc b/src/main.cc index 6b728a2475..d8aeaa5a43 100644 --- a/src/main.cc +++ b/src/main.cc @@ -989,7 +989,7 @@ mainInitialize(void) #endif #ifdef USE_POLL - commPollRegisterWithCacheManager(*manager); + commPollRegisterWithCacheManager(); #endif #if defined(USE_SELECT) || defined(USE_SELECT_WIN32) -- 2.47.3