diff options
author | Changli Gao <xiaosuo@gmail.com> | 2010-07-10 16:41:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-12 23:21:45 -0400 |
commit | 53d3176b282cc105493babb0fef36c8b873f6201 (patch) | |
tree | 2571bb37b0e292b7b2fbbd6b056661584260c9bf /include/net/udp.h | |
parent | dbe000ed3f3033e8e6321d79023c827faf649c4d (diff) |
net: cleanups
remove useless blanks.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
include/net/inet_common.h | 55 ++++-------
include/net/tcp.h | 222 +++++++++++++++++-----------------------------
include/net/udp.h | 38 +++----
3 files changed, 123 insertions(+), 192 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 5348d80b25bb..7abdf305da50 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -157,30 +157,28 @@ static inline void udp_lib_close(struct sock *sk, long timeout) | |||
157 | sk_common_release(sk); | 157 | sk_common_release(sk); |
158 | } | 158 | } |
159 | 159 | ||
160 | extern int udp_lib_get_port(struct sock *sk, unsigned short snum, | 160 | extern int udp_lib_get_port(struct sock *sk, unsigned short snum, |
161 | int (*)(const struct sock *,const struct sock *), | 161 | int (*)(const struct sock *,const struct sock *), |
162 | unsigned int hash2_nulladdr); | 162 | unsigned int hash2_nulladdr); |
163 | 163 | ||
164 | /* net/ipv4/udp.c */ | 164 | /* net/ipv4/udp.c */ |
165 | extern int udp_get_port(struct sock *sk, unsigned short snum, | 165 | extern int udp_get_port(struct sock *sk, unsigned short snum, |
166 | int (*saddr_cmp)(const struct sock *, const struct sock *)); | 166 | int (*saddr_cmp)(const struct sock *, |
167 | extern void udp_err(struct sk_buff *, u32); | 167 | const struct sock *)); |
168 | 168 | extern void udp_err(struct sk_buff *, u32); | |
169 | extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk, | 169 | extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk, |
170 | struct msghdr *msg, size_t len); | 170 | struct msghdr *msg, size_t len); |
171 | extern void udp_flush_pending_frames(struct sock *sk); | 171 | extern void udp_flush_pending_frames(struct sock *sk); |
172 | 172 | extern int udp_rcv(struct sk_buff *skb); | |
173 | extern int udp_rcv(struct sk_buff *skb); | 173 | extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
174 | extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); | 174 | extern int udp_disconnect(struct sock *sk, int flags); |
175 | extern int udp_disconnect(struct sock *sk, int flags); | ||
176 | extern unsigned int udp_poll(struct file *file, struct socket *sock, | 175 | extern unsigned int udp_poll(struct file *file, struct socket *sock, |
177 | poll_table *wait); | 176 | poll_table *wait); |
178 | extern int udp_lib_getsockopt(struct sock *sk, int level, int optname, | 177 | extern int udp_lib_getsockopt(struct sock *sk, int level, int optname, |
179 | char __user *optval, int __user *optlen); | 178 | char __user *optval, int __user *optlen); |
180 | extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, | 179 | extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, |
181 | char __user *optval, unsigned int optlen, | 180 | char __user *optval, unsigned int optlen, |
182 | int (*push_pending_frames)(struct sock *)); | 181 | int (*push_pending_frames)(struct sock *)); |
183 | |||
184 | extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, | 182 | extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, |
185 | __be32 daddr, __be16 dport, | 183 | __be32 daddr, __be16 dport, |
186 | int dif); | 184 | int dif); |
@@ -236,7 +234,7 @@ struct udp_iter_state { | |||
236 | extern int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo); | 234 | extern int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo); |
237 | extern void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo); | 235 | extern void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo); |
238 | 236 | ||
239 | extern int udp4_proc_init(void); | 237 | extern int udp4_proc_init(void); |
240 | extern void udp4_proc_exit(void); | 238 | extern void udp4_proc_exit(void); |
241 | #endif | 239 | #endif |
242 | 240 | ||