[Nagios-checkins] SF.net SVN: nagios:[2051] nagioscore/trunk

ageric at users.sourceforge.net ageric at users.sourceforge.net
Thu Aug 2 00:51:11 UTC 2012


Revision: 2051
          http://nagios.svn.sourceforge.net/nagios/?rev=2051&view=rev
Author:   ageric
Date:     2012-08-02 00:51:11 +0000 (Thu, 02 Aug 2012)
Log Message:
-----------
core: Remove output_file_fd from check_result struct

It's unused since quite some time and has no purpose. Besides, one
can always use the fileno() macro on the checkresult's output_file_fp
variable to get the exact same info.

Signed-off-by: Andreas Ericsson <ae at op5.se>

Modified Paths:
--------------
    nagioscore/trunk/base/utils.c
    nagioscore/trunk/include/nagios.h

Modified: nagioscore/trunk/base/utils.c
===================================================================
--- nagioscore/trunk/base/utils.c	2012-08-02 00:50:52 UTC (rev 2050)
+++ nagioscore/trunk/base/utils.c	2012-08-02 00:51:11 UTC (rev 2051)
@@ -2228,7 +2228,6 @@
 	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;

Modified: nagioscore/trunk/include/nagios.h
===================================================================
--- nagioscore/trunk/include/nagios.h	2012-08-02 00:50:52 UTC (rev 2050)
+++ nagioscore/trunk/include/nagios.h	2012-08-02 00:51:11 UTC (rev 2051)
@@ -308,7 +308,6 @@
 	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;
 	double latency;
 	struct timeval start_time;			/* time the service check was initiated */
 	struct timeval finish_time;			/* time the service check was completed */

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Nagios-commits mailing list