summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_time.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-10-18 12:34:20 +0000
committerPatrick McHardy <kaber@trash.net>2007-10-18 12:34:20 +0000
commitfceebd8a493a16a767cf1c8e890830c129218c8f (patch)
tree1001eb57ab7ac35d9d173ae508ab15bfffecd390 /extensions/libxt_time.c
parentff64ae696f64811d513b7969713d8002e37c0c3b (diff)
Fix the compile warning fix
According to Jan: While the fields of struct xt_time are uints, the defined time_t span is by definition 0..231-1, i.e. it should be INT_MAX, not UINT_MAX.
Diffstat (limited to 'extensions/libxt_time.c')
-rw-r--r--extensions/libxt_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libxt_time.c b/extensions/libxt_time.c
index 7c94c466..bc199381 100644
--- a/extensions/libxt_time.c
+++ b/extensions/libxt_time.c
@@ -75,7 +75,7 @@ static void time_init(struct xt_entry_match *m)
/* ...and have no date-begin or date-end boundary */
info->date_start = 0;
- info->date_stop = UINT_MAX;
+ info->date_stop = INT_MAX;
/* local time is default */
info->flags |= XT_TIME_LOCAL_TZ;
@@ -428,7 +428,7 @@ static void time_print(const void *ip, const struct xt_entry_match *match,
printf("starting from ");
time_print_date(info->date_start, NULL);
}
- if (info->date_stop != UINT_MAX) {
+ if (info->date_stop != INT_MAX) {
printf("until date ");
time_print_date(info->date_stop, NULL);
}