aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-12-13 22:51:28 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-14 13:34:55 -0500
commite6560d4dfe62ddf6010fdf4a417b1b3bdcbf4fd3 (patch)
treef97d67f8f8988ca211f38f03d41b2323c1bf5386 /net/ipv4
parent3a53943b5ae8b61913e2d61e98cbeedf67861c92 (diff)
net: ping: remove some sparse errors
net/ipv4/sysctl_net_ipv4.c:78:6: warning: symbol 'inet_get_ping_group_range_table' was not declared. Should it be static? net/ipv4/sysctl_net_ipv4.c:119:31: warning: incorrect type in argument 2 (different signedness) net/ipv4/sysctl_net_ipv4.c:119:31: expected int *range net/ipv4/sysctl_net_ipv4.c:119:31: got unsigned int *<noident> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/sysctl_net_ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
index fe9bf915676c..4aa7e9dc0cbb 100644
--- a/net/ipv4/sysctl_net_ipv4.c
+++ b/net/ipv4/sysctl_net_ipv4.c
@@ -75,7 +75,7 @@ static int ipv4_local_port_range(ctl_table *table, int write,
75} 75}
76 76
77 77
78void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high) 78static void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t *high)
79{ 79{
80 gid_t *data = table->data; 80 gid_t *data = table->data;
81 unsigned seq; 81 unsigned seq;
@@ -88,7 +88,7 @@ void inet_get_ping_group_range_table(struct ctl_table *table, gid_t *low, gid_t
88} 88}
89 89
90/* Update system visible IP port range */ 90/* Update system visible IP port range */
91static void set_ping_group_range(struct ctl_table *table, int range[2]) 91static void set_ping_group_range(struct ctl_table *table, gid_t range[2])
92{ 92{
93 gid_t *data = table->data; 93 gid_t *data = table->data;
94 write_seqlock(&sysctl_local_ports.lock); 94 write_seqlock(&sysctl_local_ports.lock);