diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-21 01:48:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:48:35 -0500 |
commit | 543d9cfeec4d58ad3fd974db5531b06b6b95deb4 (patch) | |
tree | b5f79a92ec01b4a97f26d48cae11566498641822 /net/ipv4/tcp.c | |
parent | f94691acf9df35d5cd828373e35391bdc4a3fde6 (diff) |
[NET]: Identation & other cleanups related to compat_[gs]etsockopt cset
No code changes, just tidying up, in some cases moving EXPORT_SYMBOLs
to just after the function exported, etc.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 89da253e33f0..4b0272c92d66 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1879,14 +1879,16 @@ int tcp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, | |||
1879 | } | 1879 | } |
1880 | 1880 | ||
1881 | #ifdef CONFIG_COMPAT | 1881 | #ifdef CONFIG_COMPAT |
1882 | int compat_tcp_setsockopt(struct sock *sk, int level, | 1882 | int compat_tcp_setsockopt(struct sock *sk, int level, int optname, |
1883 | int optname, char __user *optval, int optlen) | 1883 | char __user *optval, int optlen) |
1884 | { | 1884 | { |
1885 | if (level != SOL_TCP) | 1885 | if (level != SOL_TCP) |
1886 | return inet_csk_compat_setsockopt(sk, level, optname, | 1886 | return inet_csk_compat_setsockopt(sk, level, optname, |
1887 | optval, optlen); | 1887 | optval, optlen); |
1888 | return do_tcp_setsockopt(sk, level, optname, optval, optlen); | 1888 | return do_tcp_setsockopt(sk, level, optname, optval, optlen); |
1889 | } | 1889 | } |
1890 | |||
1891 | EXPORT_SYMBOL(compat_tcp_setsockopt); | ||
1890 | #endif | 1892 | #endif |
1891 | 1893 | ||
1892 | /* Return information about state of tcp endpoint in API format. */ | 1894 | /* Return information about state of tcp endpoint in API format. */ |
@@ -2051,14 +2053,16 @@ int tcp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, | |||
2051 | } | 2053 | } |
2052 | 2054 | ||
2053 | #ifdef CONFIG_COMPAT | 2055 | #ifdef CONFIG_COMPAT |
2054 | int compat_tcp_getsockopt(struct sock *sk, int level, | 2056 | int compat_tcp_getsockopt(struct sock *sk, int level, int optname, |
2055 | int optname, char __user *optval, int __user *optlen) | 2057 | char __user *optval, int __user *optlen) |
2056 | { | 2058 | { |
2057 | if (level != SOL_TCP) | 2059 | if (level != SOL_TCP) |
2058 | return inet_csk_compat_getsockopt(sk, level, optname, | 2060 | return inet_csk_compat_getsockopt(sk, level, optname, |
2059 | optval, optlen); | 2061 | optval, optlen); |
2060 | return do_tcp_getsockopt(sk, level, optname, optval, optlen); | 2062 | return do_tcp_getsockopt(sk, level, optname, optval, optlen); |
2061 | } | 2063 | } |
2064 | |||
2065 | EXPORT_SYMBOL(compat_tcp_getsockopt); | ||
2062 | #endif | 2066 | #endif |
2063 | 2067 | ||
2064 | extern void __skb_cb_too_small_for_tcp(int, int); | 2068 | extern void __skb_cb_too_small_for_tcp(int, int); |
@@ -2177,7 +2181,3 @@ EXPORT_SYMBOL(tcp_sendpage); | |||
2177 | EXPORT_SYMBOL(tcp_setsockopt); | 2181 | EXPORT_SYMBOL(tcp_setsockopt); |
2178 | EXPORT_SYMBOL(tcp_shutdown); | 2182 | EXPORT_SYMBOL(tcp_shutdown); |
2179 | EXPORT_SYMBOL(tcp_statistics); | 2183 | EXPORT_SYMBOL(tcp_statistics); |
2180 | #ifdef CONFIG_COMPAT | ||
2181 | EXPORT_SYMBOL(compat_tcp_setsockopt); | ||
2182 | EXPORT_SYMBOL(compat_tcp_getsockopt); | ||
2183 | #endif | ||