From a2f0f8dcdb2b64c058f182c50115d46ab9a59992 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Wed, 16 May 2012 19:43:03 +0100 Subject: [PATCH] saslauth: Fix an incompatibility with older versions of GCC Reported by KindOne --- modules/saslauth.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/saslauth.cpp b/modules/saslauth.cpp index 600abf88..0cea19d0 100644 --- a/modules/saslauth.cpp +++ b/modules/saslauth.cpp @@ -23,11 +23,11 @@ public: m_Cache.SetTTL(60000/*ms*/); AddHelpCommand(); - AddCommand("CreateUser", static_cast(&CSASLAuthMod::CreateUser), + AddCommand("CreateUser", static_cast(&CSASLAuthMod::CreateUserCommand), "[yes|no]"); - AddCommand("CloneUser", static_cast(&CSASLAuthMod::CloneUser), + AddCommand("CloneUser", static_cast(&CSASLAuthMod::CloneUserCommand), "[username]"); - AddCommand("DisableCloneUser", static_cast(&CSASLAuthMod::DisableCloneUser)); + AddCommand("DisableCloneUser", static_cast(&CSASLAuthMod::DisableCloneUserCommand)); } virtual ~CSASLAuthMod() { @@ -147,7 +147,7 @@ public: const CString& GetMethod() const { return m_sMethod; } - void CreateUser(const CString &sLine) { + void CreateUserCommand(const CString &sLine) { CString sCreate = sLine.Token(1); if (!sCreate.empty()) { @@ -161,7 +161,7 @@ public: } } - void CloneUser(const CString &sLine) { + void CloneUserCommand(const CString &sLine) { CString sUsername = sLine.Token(1); if (!sUsername.empty()) { @@ -175,7 +175,7 @@ public: } } - void DisableCloneUser(const CString &sLine) { + void DisableCloneUserCommand(const CString &sLine) { DelNV("CloneUser"); PutModule("Clone user disabled"); }