Module: check_mk
Branch: master
Commit: 9f4ce16e3b7353701561e66203fd2389f86c677c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9f4ce16e3b7353…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Sep 26 16:47:39 2012 +0200
reformatted code
---
livestatus/src/DownCommColumn.cc | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/livestatus/src/DownCommColumn.cc b/livestatus/src/DownCommColumn.cc
index c77189b..00557ce 100644
--- a/livestatus/src/DownCommColumn.cc
+++ b/livestatus/src/DownCommColumn.cc
@@ -33,9 +33,7 @@ void DownCommColumn::output(void *data, Query *query)
{
TableDownComm *table = _is_downtime ? g_table_downtimes : g_table_comments;
query->outputBeginList();
-
data = shiftPointer(data); // points to host or service
-
if (data)
{
bool first = true;
@@ -51,11 +49,11 @@ void DownCommColumn::output(void *data, Query *query)
found_match = false;
if ( dt->_service == 0){
if (dt->_host->name == ((host_struct*)data)->name)
- found_match = true;
+ found_match = true;
}
else
if ( dt->_service->description ==
((service_struct*)data)->description && dt->_service->host_name ==
((service_struct*)data)->host_name )
- found_match = true;
+ found_match = true;
if (found_match)
{