patch-2.4.10 linux/net/khttpd/datasending.c

Next file: linux/net/khttpd/rfc.c
Previous file: linux/net/irda/irsysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/net/khttpd/datasending.c linux/net/khttpd/datasending.c
@@ -105,8 +105,8 @@
 		
 		Space = sock_wspace(CurrentRequest->sock->sk);
 		
-		ReadSize = min(int, 4 * 4096, CurrentRequest->FileLength - CurrentRequest->BytesSent);
-		ReadSize = min(int, ReadSize, Space);
+		ReadSize = min_t(int, 4 * 4096, CurrentRequest->FileLength - CurrentRequest->BytesSent);
+		ReadSize = min_t(int, ReadSize, Space);
 
 		if (ReadSize>0)
 		{			

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)