From e64b2549f5ea0686f55d6f86353fd0b522d9d4c8 Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 19 Mar 2009 16:25:33 +0000 Subject: [PATCH] Change CZNC::Loop()'s return type to void CZNC::Loop() never returns a value, the only way it can return is through some throws (e.g. for restart or shutdown). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1434 726aef4b-f618-498e-8847-2d620e286838 --- main.cpp | 2 +- znc.cpp | 4 +--- znc.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 220345ab..13113837 100644 --- a/main.cpp +++ b/main.cpp @@ -255,7 +255,7 @@ int main(int argc, char** argv) { int iRet = 0; try { - iRet = pZNC->Loop(); + pZNC->Loop(); } catch (CException e) { switch (e.GetType()) { case CException::EX_Shutdown: diff --git a/znc.cpp b/znc.cpp index 9b355f93..803e3ed1 100644 --- a/znc.cpp +++ b/znc.cpp @@ -213,7 +213,7 @@ bool CZNC::HandleUserDeletion() return true; } -int CZNC::Loop() { +void CZNC::Loop() { while (true) { CString sError; @@ -238,8 +238,6 @@ int CZNC::Loop() { // 500 msec to 600 sec m_Manager.DynamicSelectLoop(500 * 1000, 600 * 1000 * 1000); } - - return 0; } bool CZNC::WriteISpoof(CUser* pUser) { diff --git a/znc.h b/znc.h index 553eacf5..2ede183d 100644 --- a/znc.h +++ b/znc.h @@ -93,7 +93,7 @@ public: ~CZNC(); void DeleteUsers(); - int Loop(); + void Loop(); bool WriteISpoof(CUser* pUser); void ReleaseISpoof(); bool WritePidFile(int iPid);