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

Next file: linux/net/khttpd/prototypes.h
Previous file: linux/net/irda/af_irda.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/net/khttpd/datasending.c linux/net/khttpd/datasending.c
@@ -105,8 +105,8 @@
 		
 		Space = sock_wspace(CurrentRequest->sock->sk);
 		
-		ReadSize = min(4*4096,CurrentRequest->FileLength - CurrentRequest->BytesSent);
-		ReadSize = min(ReadSize , Space );
+		ReadSize = min(int, 4 * 4096, CurrentRequest->FileLength - CurrentRequest->BytesSent);
+		ReadSize = min(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)