[icinga-checkins] icinga.org: icinga-core/test/cgis: fix some minor compiler warnings

git at icinga.org git at icinga.org
Sat Feb 25 21:19:18 CET 2012


Module: icinga-core
Branch: test/cgis
Commit: 22d115c5f56d2e132a08891807949c0fe2b9d63c
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=22d115c5f56d2e132a08891807949c0fe2b9d63c

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Sat Feb 25 00:09:54 2012 +0100

fix some minor compiler warnings

---

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

diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c
index c120e4d..ce00a2b 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -96,9 +96,9 @@ extern char 	*macro_user[MAX_USER_MACROS];
 
 /** readlogs.c **/
 int		log_rotation_method = LOG_ROTATION_NONE;
-time_t	this_scheduled_log_rotation;
-time_t	last_scheduled_log_rotation;
-time_t	next_scheduled_log_rotation;
+time_t		this_scheduled_log_rotation = 0L;
+time_t		last_scheduled_log_rotation = 0L;
+time_t		next_scheduled_log_rotation = 0L;
 char		log_file[MAX_INPUT_BUFFER];
 char		log_archive_path[MAX_INPUT_BUFFER];
 
diff --git a/cgi/readlogs.c b/cgi/readlogs.c
index 22a8d2e..e47a5ed 100644
--- a/cgi/readlogs.c
+++ b/cgi/readlogs.c
@@ -48,9 +48,9 @@ extern char	log_archive_path[MAX_FILENAME_LENGTH];	/**< the full path to the arc
 
 /** @name vars for log archive determination
     @{ **/
-extern time_t		this_scheduled_log_rotation = 0L;		/**< timestamp of current log rotation*/
-extern time_t		last_scheduled_log_rotation = 0L;		/**< timestamp of last log rotation */
-extern time_t		next_scheduled_log_rotation = 0L;		/**< timestamp of next log rotation */
+extern time_t		this_scheduled_log_rotation;		/**< timestamp of current log rotation*/
+extern time_t		last_scheduled_log_rotation;		/**< timestamp of last log rotation */
+extern time_t		next_scheduled_log_rotation;		/**< timestamp of next log rotation */
 /** @} */
 
 





More information about the icinga-checkins mailing list