summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2003-05-14 06:17:16 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-05-14 06:17:16 -0700
commit6b994273ae6522f0ea90397bfb2e5b48e78b6439 (patch)
treed70fd8f38c919b2dc1708c80ece006f9dcf754b6 /include
parent80dbe6fd7328247eb36b62a39e89e91e76dc12c4 (diff)
[TCP]: extern __inline__ --> static inline where appropriate.
Diffstat (limited to 'include')
-rw-r--r--include/net/tcp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 94c31a3fef43..ee1ef9aa5c7e 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -614,19 +614,19 @@ struct tcp_func {
* and worry about wraparound (automatic with unsigned arithmetic).
*/
-extern __inline int before(__u32 seq1, __u32 seq2)
+static inline int before(__u32 seq1, __u32 seq2)
{
return (__s32)(seq1-seq2) < 0;
}
-extern __inline int after(__u32 seq1, __u32 seq2)
+static inline int after(__u32 seq1, __u32 seq2)
{
return (__s32)(seq2-seq1) < 0;
}
/* is s2<=s1<=s3 ? */
-extern __inline int between(__u32 seq1, __u32 seq2, __u32 seq3)
+static inline int between(__u32 seq1, __u32 seq2, __u32 seq3)
{
return seq3 - seq2 >= seq1 - seq2;
}
@@ -642,7 +642,7 @@ DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics);
#define TCP_ADD_STATS_BH(field, val) SNMP_ADD_STATS_BH(tcp_statistics, field, val)
#define TCP_ADD_STATS_USER(field, val) SNMP_ADD_STATS_USER(tcp_statistics, field, val)
-extern __inline__ void tcp_put_port(struct sock *sk);
+extern inline void tcp_put_port(struct sock *sk);
extern void tcp_inherit_port(struct sock *sk, struct sock *child);
extern void tcp_v4_err(struct sk_buff *skb, u32);