[icinga-checkins] icinga.org: icinga-core/mfriedrich/workers: core: remove useless delete_file in process_check_result_file()

git at icinga.org git at icinga.org
Tue Aug 7 15:26:35 CEST 2012


Module: icinga-core
Branch: mfriedrich/workers
Commit: 82295012a1fc1040a35debd20ac1fcd18fa99d3d
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=82295012a1fc1040a35debd20ac1fcd18fa99d3d

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Aug  7 15:20:27 2012 +0200

core: remove useless delete_file in process_check_result_file()

---

 base/utils.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/base/utils.c b/base/utils.c
index e9d4f52..86d7194 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -2558,7 +2558,6 @@ int process_check_result_file(char *fname) {
 	char *var = NULL;
 	char *val = NULL;
 	char *v1 = NULL, *v2 = NULL;
-	int delete_file = FALSE;
 	time_t current_time;
 	check_result cr;
 
@@ -2619,7 +2618,6 @@ int process_check_result_file(char *fname) {
 			/* file is too old - ignore check results it contains and delete it */
 			/* this will only work as intended if file_time comes before check results */
 			if (max_check_result_file_age > 0 && (current_time - (strtoul(val, NULL, 0)) > max_check_result_file_age)) {
-				delete_file = TRUE;
 				break;
 			}
 		}





More information about the icinga-checkins mailing list