From 6f645ecfbf74812f54fcdaff8501e4c9f30ebf46 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 16 Oct 2013 12:09:45 +0200 Subject: [PATCH] Clean up ExternalCommandProcessor method names. --- lib/icinga/externalcommandprocessor.cpp | 8 ++++---- lib/icinga/externalcommandprocessor.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/icinga/externalcommandprocessor.cpp b/lib/icinga/externalcommandprocessor.cpp index e447a1660..3079837d8 100644 --- a/lib/icinga/externalcommandprocessor.cpp +++ b/lib/icinga/externalcommandprocessor.cpp @@ -180,8 +180,8 @@ void ExternalCommandProcessor::Initialize(void) RegisterCommand("DISABLE_PERFORMANCE_DATA", &ExternalCommandProcessor::DisablePerformanceData); RegisterCommand("START_EXECUTING_SVC_CHECKS", &ExternalCommandProcessor::StartExecutingSvcChecks); RegisterCommand("STOP_EXECUTING_SVC_CHECKS", &ExternalCommandProcessor::StopExecutingSvcChecks); - RegisterCommand("CHANGE_SVC_MODATTR", &ExternalCommandProcessor::ChangeSvcModAttr); - RegisterCommand("CHANGE_HOST_MODATTR", &ExternalCommandProcessor::ChangeHostModAttr); + RegisterCommand("CHANGE_SVC_MODATTR", &ExternalCommandProcessor::ChangeSvcModattr); + RegisterCommand("CHANGE_HOST_MODATTR", &ExternalCommandProcessor::ChangeHostModattr); } void ExternalCommandProcessor::RegisterCommand(const String& command, const ExternalCommandProcessor::Callback& callback) @@ -1818,7 +1818,7 @@ void ExternalCommandProcessor::StopExecutingSvcChecks(double time, const std::ve IcingaApplication::GetInstance()->SetEnableChecks(false); } -void ExternalCommandProcessor::ChangeSvcModAttr(double time, const std::vector& arguments) +void ExternalCommandProcessor::ChangeSvcModattr(double time, const std::vector& arguments) { if (arguments.size() < 3) BOOST_THROW_EXCEPTION(std::invalid_argument("Expected 3 arguments.")); @@ -1839,7 +1839,7 @@ void ExternalCommandProcessor::ChangeSvcModAttr(double time, const std::vector& arguments) +void ExternalCommandProcessor::ChangeHostModattr(double time, const std::vector& arguments) { if (arguments.size() < 3) BOOST_THROW_EXCEPTION(std::invalid_argument("Expected 3 arguments.")); diff --git a/lib/icinga/externalcommandprocessor.h b/lib/icinga/externalcommandprocessor.h index f8cf9b94c..87b6f425f 100644 --- a/lib/icinga/externalcommandprocessor.h +++ b/lib/icinga/externalcommandprocessor.h @@ -131,8 +131,8 @@ private: static void DisablePerformanceData(double time, const std::vector& arguments); static void StartExecutingSvcChecks(double time, const std::vector& arguments); static void StopExecutingSvcChecks(double time, const std::vector& arguments); - static void ChangeSvcModAttr(double time, const std::vector& arguments); - static void ChangeHostModAttr(double time, const std::vector& arguments); + static void ChangeSvcModattr(double time, const std::vector& arguments); + static void ChangeHostModattr(double time, const std::vector& arguments); }; }