patch-2.1.89 linux/net/ipv4/igmp.c

Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/ipv4/icmp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/net/ipv4/igmp.c linux/net/ipv4/igmp.c
@@ -117,7 +117,7 @@
  * contradict to specs provided this delay is small enough.
  */
 
-#define IGMP_V1_SEEN(in_dev) ((in_dev)->mr_v1_seen && jiffies - (in_dev)->mr_v1_seen < 0)
+#define IGMP_V1_SEEN(in_dev) ((in_dev)->mr_v1_seen && (long)(jiffies - (in_dev)->mr_v1_seen) < 0)
 
 /*
  *	Timer management
@@ -286,7 +286,7 @@
 		if (LOCAL_MCAST(im->multiaddr))
 			continue;
 		im->unsolicit_count = 0;
-		if (im->tm_running && im->timer.expires-jiffies > max_delay)
+		if (im->tm_running && (long)(im->timer.expires-jiffies) > max_delay)
 			igmp_stop_timer(im);
 		igmp_start_timer(im, max_delay);
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov