From 1bf945f36756355a723b9b37536f6f0ff5d3fc2a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 22 Nov 2012 13:16:38 +0100 Subject: [PATCH] Fixed indentation. --- components/compatido/compatidocomponent.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/compatido/compatidocomponent.cpp b/components/compatido/compatidocomponent.cpp index 4c2152f81..c680ba1b8 100644 --- a/components/compatido/compatidocomponent.cpp +++ b/components/compatido/compatidocomponent.cpp @@ -437,16 +437,16 @@ void CompatIdoComponent::DumpHostStatus(const Host::Ptr& host) log << "Dumping Host Status: " << host->GetName(); Logger::Write(LogDebug, "compatido", log.str()); - int state; - if (!host->IsReachable()) + int state; + if (!host->IsReachable()) state = 2; /* unreachable */ - else if (!host->IsUp()) + else if (!host->IsUp()) state = 1; /* down */ - else + else state = 0; /* up */ - stringstream message; - message << "\n" + stringstream message; + message << "\n" << 212 << ":" << "\n" /* hoststatusdata */ << 1 << "=" << "" << "\n" /* type */ << 2 << "=" << "" << "\n" /* flags */ @@ -500,7 +500,7 @@ void CompatIdoComponent::DumpHostStatus(const Host::Ptr& host) << 262 << "=" << "i2_customvar" << ":" << "1" << ":" << "i2_customvarmod" << "\n" /* customvariable */ << 999 << "\n\n"; /* enddata */ - m_IdoConnection->SendMessage(message.str()); + m_IdoConnection->SendMessage(message.str()); } /** -- 2.40.0