[netfilter-cvslog] r7078 - trunk/iptables/extensions

kaber at trash.net kaber at trash.net
Thu Oct 18 11:36:39 CEST 2007


Author: kaber at trash.net
Date: 2007-10-18 11:36:39 +0200 (Thu, 18 Oct 2007)
New Revision: 7078

Modified:
   trunk/iptables/extensions/libxt_time.c
Log:
Fix compiler warning on 64 bit: date_stop is an u_int32_t, so use UINT_MAX instead of LONG_MAX


Modified: trunk/iptables/extensions/libxt_time.c
===================================================================
--- trunk/iptables/extensions/libxt_time.c	2007-10-18 09:12:49 UTC (rev 7077)
+++ trunk/iptables/extensions/libxt_time.c	2007-10-18 09:36:39 UTC (rev 7078)
@@ -75,7 +75,7 @@
 
 	/* ...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 @@
 		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);
 	}




More information about the netfilter-cvslog mailing list