[icinga-checkins] icinga.org: icinga-core/mfriedrich/workers: core: mark output_file_fd for removal in future majro versions

git at icinga.org git at icinga.org
Sun Aug 5 23:32:13 CEST 2012


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Sun Aug  5 18:09:22 2012 +0200

core: mark output_file_fd for removal in future majro versions

---

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

diff --git a/base/utils.c b/base/utils.c
index da7766d..e25951b 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -2721,7 +2721,6 @@ int init_check_result(check_result *info) {
 	info->scheduled_check = FALSE;
 	info->reschedule_check = FALSE;
 	info->output_file_fp = NULL;
-	info->output_file_fd = -1;
 	info->latency = 0.0;
 	info->start_time.tv_sec = 0;
 	info->start_time.tv_usec = 0;
diff --git a/include/icinga.h b/include/icinga.h
index 0a3f791..007264b 100644
--- a/include/icinga.h
+++ b/include/icinga.h
@@ -317,7 +317,7 @@ typedef struct check_result_struct{
 	int reschedule_check;                           /* should we reschedule the next check */
 	char *output_file;                              /* what file is the output stored in? */
 	FILE *output_file_fp;
-	int output_file_fd;
+	int output_file_fd;				/* @todo unused, keep for compatibility */
 	double latency;
 	struct timeval start_time;			/* time the service check was initiated */
 	struct timeval finish_time;			/* time the service check was completed */





More information about the icinga-checkins mailing list