diff options
author | Changli Gao <xiaosuo@gmail.com> | 2011-05-18 17:16:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-19 16:17:51 -0400 |
commit | bb0cd2fb539c4e454ed32e32194acc03b75753f3 (patch) | |
tree | e47d019230025967f8f25bfabdfe6f51dce595c6 /net/ipv4/ping.c | |
parent | 6b60d7b9df727726dfb7e59ca0a7caf14e81e0a2 (diff) |
net: ping: make local functions static
As these functions are only used in this file.
Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ping.c')
-rw-r--r-- | net/ipv4/ping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 6a21da906532..5f9e2d1ea4df 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
@@ -449,8 +449,8 @@ static int ping_push_pending_frames(struct sock *sk, struct pingfakehdr *pfh, st | |||
449 | return ip_push_pending_frames(sk, fl4); | 449 | return ip_push_pending_frames(sk, fl4); |
450 | } | 450 | } |
451 | 451 | ||
452 | int ping_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | 452 | static int ping_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, |
453 | size_t len) | 453 | size_t len) |
454 | { | 454 | { |
455 | struct net *net = sock_net(sk); | 455 | struct net *net = sock_net(sk); |
456 | struct flowi4 fl4; | 456 | struct flowi4 fl4; |
@@ -621,8 +621,8 @@ do_confirm: | |||
621 | goto out; | 621 | goto out; |
622 | } | 622 | } |
623 | 623 | ||
624 | int ping_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | 624 | static int ping_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, |
625 | size_t len, int noblock, int flags, int *addr_len) | 625 | size_t len, int noblock, int flags, int *addr_len) |
626 | { | 626 | { |
627 | struct inet_sock *isk = inet_sk(sk); | 627 | struct inet_sock *isk = inet_sk(sk); |
628 | struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; | 628 | struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; |