patch-1.3.76 linux/include/net/tcp.h

Next file: linux/kernel/ksyms.c
Previous file: linux/include/net/sock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.75/linux/include/net/tcp.h linux/include/net/tcp.h
@@ -107,9 +107,16 @@
 
 static __inline__ int min(unsigned int a, unsigned int b)
 {
-	if (a < b) 
-		return(a);
-	return(b);
+	if (a > b)
+		a = b;
+	return a;
+}
+
+static __inline__ int max(unsigned int a, unsigned int b)
+{
+	if (a < b)
+		a = b;
+	return a;
 }
 
 extern struct proto tcp_prot;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this