summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_time.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-18 09:36:39 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2007-10-18 09:36:39 +0000
commit3d311605701ff47d4c024debf91bc11b5f8033a7 (patch)
tree08ee86299bfdb97c28365dc40ad84465736b6d3a /extensions/libxt_time.c
parentb70073646bb0dc267f2f3c8a713e58b754eb4fdf (diff)
Fix compiler warning on 64 bit: date_stop is an u_int32_t, so use UINT_MAX instead of LONG_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 9c1f155..7c94c46 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 = LONG_MAX;
+ info->date_stop = UINT_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 != LONG_MAX) {
+ if (info->date_stop != UINT_MAX) {
printf("until date ");
time_print_date(info->date_stop, NULL);
}