[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: corrected var type of midnight to time_t #1370

git at icinga.org git at icinga.org
Sat Apr 30 13:14:29 CEST 2011


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

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Fri Apr 29 00:03:34 2011 +0200

corrected var type of midnight to time_t #1370

---

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

diff --git a/base/utils.c b/base/utils.c
index 3faa957..b6b8484 100644
--- a/base/utils.c
+++ b/base/utils.c
@@ -838,7 +838,7 @@ int check_time_against_period(time_t test_time, timeperiod *tperiod){
 	timeperiodexclusion *first_timeperiodexclusion=NULL;
 	daterange *temp_daterange=NULL;
 	timerange *temp_timerange=NULL;
-	unsigned long midnight=0L;
+	time_t midnight=0L;
 	time_t start_time=(time_t)0L;
 	time_t end_time=(time_t)0L;
 	int found_match=FALSE;
@@ -1167,7 +1167,7 @@ void _get_next_valid_time_per_timeperiod(time_t pref_time, time_t *valid_time, t
 	time_t preferred_time=(time_t)0L;
 	timerange *temp_timerange;
 	daterange *temp_daterange;
-	unsigned long midnight=0L;
+	time_t midnight=0L;
 	struct tm *t, tm_s;
 	time_t day_start=(time_t)0L;
 	time_t day_range_start=(time_t)0L;
@@ -1565,7 +1565,7 @@ void get_min_invalid_time_per_timeperiod(time_t pref_time, time_t *valid_time, t
 	time_t preferred_time=(time_t)0L;
 	timerange *temp_timerange;
 	daterange *temp_daterange;
-	unsigned long midnight=0L;
+	time_t midnight=0L;
 	struct tm *t, tm_s;
 	time_t day_start=(time_t)0L;
 	time_t day_range_start=(time_t)0L;





More information about the icinga-checkins mailing list