patch-2.4.9 linux/net/ipv4/tcp.c
Next file: linux/net/ipv4/tcp_input.c
Previous file: linux/net/ipv4/route.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Aug 15 01:22:17 2001
- Orig file:
v2.4.8/linux/net/ipv4/tcp.c
- Orig date:
Wed May 16 10:31:27 2001
diff -u --recursive --new-file v2.4.8/linux/net/ipv4/tcp.c linux/net/ipv4/tcp.c
@@ -5,7 +5,7 @@
*
* Implementation of the Transmission Control Protocol(TCP).
*
- * Version: $Id: tcp.c,v 1.205 2001/05/05 22:25:30 davem Exp $
+ * Version: $Id: tcp.c,v 1.208 2001/08/13 18:56:12 davem Exp $
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -852,7 +852,7 @@
page = pages[poffset/PAGE_SIZE];
offset = poffset % PAGE_SIZE;
- size = min(psize, PAGE_SIZE-offset);
+ size = min(unsigned int, psize, PAGE_SIZE-offset);
if (tp->send_head==NULL || (copy = mss_now - skb->len) <= 0) {
new_segment:
@@ -2326,7 +2326,7 @@
if(get_user(len,optlen))
return -EFAULT;
- len = min(len, sizeof(int));
+ len = min(unsigned int, len, sizeof(int));
if(len < 0)
return -EINVAL;
@@ -2421,7 +2421,7 @@
info.tcpi_advmss = tp->advmss;
info.tcpi_reordering = tp->reordering;
- len = min(len, sizeof(info));
+ len = min(unsigned int, len, sizeof(info));
if(put_user(len, optlen))
return -EFAULT;
if(copy_to_user(optval, &info,len))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)