Browse files

saslauth: Fix an incompatibility with older versions of GCC

Reported by KindOne
  • Loading branch information...
1 parent 623ba08 commit a2f0f8dcdb2b64c058f182c50115d46ab9a59992 @kylef kylef committed May 16, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 modules/saslauth.cpp
View
12 modules/saslauth.cpp
@@ -23,11 +23,11 @@ class CSASLAuthMod : public CModule {
m_Cache.SetTTL(60000/*ms*/);
AddHelpCommand();
- AddCommand("CreateUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::CreateUser),
+ AddCommand("CreateUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::CreateUserCommand),
"[yes|no]");
- AddCommand("CloneUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::CloneUser),
+ AddCommand("CloneUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::CloneUserCommand),
"[username]");
- AddCommand("DisableCloneUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::DisableCloneUser));
+ AddCommand("DisableCloneUser", static_cast<CModCommand::ModCmdFunc>(&CSASLAuthMod::DisableCloneUserCommand));
}
virtual ~CSASLAuthMod() {
@@ -147,7 +147,7 @@ class CSASLAuthMod : public CModule {
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 @@ class CSASLAuthMod : public CModule {
}
}
- void CloneUser(const CString &sLine) {
+ void CloneUserCommand(const CString &sLine) {
CString sUsername = sLine.Token(1);
if (!sUsername.empty()) {
@@ -175,7 +175,7 @@ class CSASLAuthMod : public CModule {
}
}
- void DisableCloneUser(const CString &sLine) {
+ void DisableCloneUserCommand(const CString &sLine) {
DelNV("CloneUser");
PutModule("Clone user disabled");
}

0 comments on commit a2f0f8d

Please sign in to comment.