]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add missing SBufStatsAction changes for registration rework
authorHenrik Nordstrom <hno@squid-cache.org>
Thu, 19 Mar 2015 11:09:24 +0000 (12:09 +0100)
committerHenrik Nordstrom <hno@squid-cache.org>
Thu, 19 Mar 2015 11:09:24 +0000 (12:09 +0100)
somehow forgot to add these to previous commit

src/SBufStatsAction.cc

index e4547f1f078772ed62ff6a555d7259d30821c378..ab1dc5d2f4199af230fd3e1bae39909543bdfc27 100644 (file)
@@ -82,7 +82,8 @@ SBufStatsAction::unpack(const Ipc::TypedMsgHdr& msg)
     msg.getPod(mbdata);
 }
 
-static const bool Registered = (Mgr::RegisterAction("sbuf",
-                                "String-Buffer statistics", &SBufStatsAction::Create, 0 , 1),
-                                true);
-
+void
+SBufStatsAction::RegisterWithCacheManager()
+{
+    Mgr::RegisterAction("sbuf", "String-Buffer statistics", &SBufStatsAction::Create, 0 , 1);
+}