Module: check_mk
Branch: master
Commit: 3870110543ad481ab2d7825b91ad11d24d25345c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3870110543ad48…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Oct 28 11:48:18 2015 +0100
Untabify.
---
livestatus/src/Store.cc | 4 +---
livestatus/src/TableStateHistory.cc | 18 +++++++++---------
livestatus/src/store_c.cc | 6 ++----
livestatus/src/unixcat.c | 3 +--
4 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/livestatus/src/Store.cc b/livestatus/src/Store.cc
index 57449cb..fba20b2 100644
--- a/livestatus/src/Store.cc
+++ b/livestatus/src/Store.cc
@@ -142,7 +142,7 @@ bool Store::answerRequest(InputBuffer *input, OutputBuffer *output)
output->setDoKeepalive(true);
}
else if (!strncmp(line, "LOGROTATE", 9)) {
- logger(LG_INFO, "Forcing logfile rotation");
+ logger(LG_INFO, "Forcing logfile rotation");
rotate_log_file(time(0));
schedule_new_event(EVENT_LOG_ROTATION,TRUE,get_next_log_rotation_time(),FALSE,0,(void
*)get_next_log_rotation_time,TRUE,NULL,NULL,0);
}
@@ -195,5 +195,3 @@ void Store::answerGetRequest(InputBuffer *input, OutputBuffer *output,
const cha
logger(LG_INFO, "Time to process request: %lu us. Size of answer: %d
bytes", ustime, output->size());
}
}
-
-
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index e4efdbd..5b48052 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -368,13 +368,13 @@ void TableStateHistory::answerQuery(Query *query)
key = 0;
bool is_service = false;
switch (entry->_type) {
- case NONE:
- case CORE_STARTING:
- case CORE_STOPPING:
- case LOG_VERSION:
- case ACKNOWLEDGE_ALERT_HOST:
- case ACKNOWLEDGE_ALERT_SERVICE:
- break;
+ case NONE:
+ case CORE_STARTING:
+ case CORE_STOPPING:
+ case LOG_VERSION:
+ case ACKNOWLEDGE_ALERT_HOST:
+ case ACKNOWLEDGE_ALERT_SERVICE:
+ break;
case ALERT_SERVICE:
case STATE_SERVICE:
case STATE_SERVICE_INITIAL:
@@ -382,7 +382,7 @@ void TableStateHistory::answerQuery(Query *query)
case FLAPPING_SERVICE:
key = entry->_service;
is_service = true;
- // fall-through
+ // fall-through
case ALERT_HOST:
case STATE_HOST:
case STATE_HOST_INITIAL:
@@ -704,7 +704,7 @@ int TableStateHistory::updateHostServiceState(Query *query, const
LogEntry *entr
case LOG_INITIAL_STATES:
case ACKNOWLEDGE_ALERT_HOST:
case ACKNOWLEDGE_ALERT_SERVICE:
- break;
+ break;
case STATE_HOST:
case STATE_HOST_INITIAL:
case ALERT_HOST:
diff --git a/livestatus/src/store_c.cc b/livestatus/src/store_c.cc
index af245ba..781790a 100644
--- a/livestatus/src/store_c.cc
+++ b/livestatus/src/store_c.cc
@@ -48,7 +48,7 @@ TimeperiodsCache *g_timeperiods_cache = 0;
void store_init()
{
- g_store = new Store();
+ g_store = new Store();
g_client_queue = new ClientQueue();
g_timeperiods_cache = new TimeperiodsCache();
}
@@ -136,7 +136,5 @@ void update_timeperiods_cache(time_t now)
}
void log_timeperiods_cache(){
- g_timeperiods_cache->logCurrentTimeperiods();
+ g_timeperiods_cache->logCurrentTimeperiods();
}
-
-
diff --git a/livestatus/src/unixcat.c b/livestatus/src/unixcat.c
index 15e5e2d..ad637c8 100644
--- a/livestatus/src/unixcat.c
+++ b/livestatus/src/unixcat.c
@@ -112,7 +112,7 @@ void *copy_thread(void *info)
r -= w;
else if (w == 0 && r > 0) {
fprintf(stderr, "Error: Cannot write %" PRIdMAX " bytes to
%d: %s\n",
- (intmax_t)w, to, strerror(errno));
+ (intmax_t)w, to, strerror(errno));
break;
}
}
@@ -166,4 +166,3 @@ int main(int argc, char **argv)
close(sock);
return 0;
}
-