[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: fix compiler issue on initializing

git at icinga.org git at icinga.org
Mon Mar 14 16:25:04 CET 2011


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Mon Mar 14 16:21:08 2011 +0100

fix compiler issue on initializing

---

 cgi/cgiutils.c |    2 +-
 cgi/readlogs.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c
index 6abcc6d..b2043c5 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -87,7 +87,7 @@ extern time_t   last_command_check;
 extern time_t   last_log_rotation;
 
 /** readlogs.c **/
-int		log_rotation_method;
+int		log_rotation_method=LOG_ROTATION_NONE;
 extern time_t	this_scheduled_log_rotation;
 extern time_t	last_scheduled_log_rotation;
 extern time_t	next_scheduled_log_rotation;
diff --git a/cgi/readlogs.c b/cgi/readlogs.c
index 708cd79..05254ba 100644
--- a/cgi/readlogs.c
+++ b/cgi/readlogs.c
@@ -31,7 +31,7 @@ logfilter	*filter_list=NULL;
 logentry 	*entry_list=NULL;
 
 /** Initialazing some vars */
-extern int      log_rotation_method=LOG_ROTATION_NONE;
+extern int      log_rotation_method;
 
 time_t          this_scheduled_log_rotation=0L;
 time_t          last_scheduled_log_rotation=0L;





More information about the icinga-checkins mailing list