[checkmk-commits] Check_MK Git: check_mk: Minor code cleanup in Windows agent

Mathias Kettner mk at mathias-kettner.de
Tue Aug 19 13:32:52 CEST 2014


Module: check_mk
Branch: master
Commit: 879248ced8850ea2da6ab131e77b9dd7dedbe22f
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=879248ced8850ea2da6ab131e77b9dd7dedbe22f

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Tue Aug 19 13:32:38 2014 +0200

Minor code cleanup in Windows agent

---

 agents/windows/check_mk_agent.cc |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index 92ca664..bd26684 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -3822,19 +3822,23 @@ bool handle_logfiles_config_variable(char *var, char *value)
         if (value != 0)
             add_globline(value);
         return true;
-    }else if (!strcmp(var, "warn")) {
+    }
+    else if (!strcmp(var, "warn")) {
         if (value != 0)
             add_condition_pattern('W', value);
         return true;
-    }else if (!strcmp(var, "crit")) {
+    }
+    else if (!strcmp(var, "crit")) {
         if (value != 0)
             add_condition_pattern('C', value);
         return true;
-    }else if (!strcmp(var, "ignore")) {
+    }
+    else if (!strcmp(var, "ignore")) {
         if (value != 0)
             add_condition_pattern('I', value);
         return true;
-    }else if (!strcmp(var, "ok")) {
+    }
+    else if (!strcmp(var, "ok")) {
         if (value != 0)
             add_condition_pattern('O', value);
         return true;



More information about the checkmk-commits mailing list