patch-2.4.9 linux/include/net/sock.h
Next file: linux/include/net/tcp.h
Previous file: linux/include/net/irda/vlsi_ir.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Aug 15 14:21:32 2001
- Orig file:
v2.4.8/linux/include/net/sock.h
- Orig date:
Tue Aug 7 12:49:04 2001
diff -u --recursive --new-file v2.4.8/linux/include/net/sock.h linux/include/net/sock.h
@@ -803,26 +803,6 @@
#define bh_lock_sock(__sk) spin_lock(&((__sk)->lock.slock))
#define bh_unlock_sock(__sk) spin_unlock(&((__sk)->lock.slock))
-/*
- * This might not be the most appropriate place for this two
- * but since they are used by a lot of the net related code
- * at least they get declared on a include that is common to all
- */
-
-static __inline__ int min(unsigned int a, unsigned int 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 sock * sk_alloc(int family, int priority, int zero_it);
extern void sk_free(struct sock *sk);
@@ -1265,7 +1245,7 @@
static inline int sock_rcvlowat(struct sock *sk, int waitall, int len)
{
- return (waitall ? len : min(sk->rcvlowat, len)) ? : 1;
+ return (waitall ? len : min(int, sk->rcvlowat, len)) ? : 1;
}
/* Alas, with timeout socket operations are not restartable.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)