diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2012-04-15 01:58:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:44:40 -0400 |
commit | 95c961747284a6b83a5e2d81240e214b0fa3464d (patch) | |
tree | c7be86a00db3605a48a03109fafcbe31039ca2e0 /net/ipv4/ping.c | |
parent | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (diff) |
net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree.
Signed-off-by: Eric Dumazet <eric.dumazet@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, 5 insertions, 3 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 9f380ace22ee..6e930c7174dd 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
@@ -51,15 +51,16 @@ static struct ping_table ping_table; | |||
51 | 51 | ||
52 | static u16 ping_port_rover; | 52 | static u16 ping_port_rover; |
53 | 53 | ||
54 | static inline int ping_hashfn(struct net *net, unsigned num, unsigned mask) | 54 | static inline int ping_hashfn(struct net *net, unsigned int num, unsigned int mask) |
55 | { | 55 | { |
56 | int res = (num + net_hash_mix(net)) & mask; | 56 | int res = (num + net_hash_mix(net)) & mask; |
57 | |||
57 | pr_debug("hash(%d) = %d\n", num, res); | 58 | pr_debug("hash(%d) = %d\n", num, res); |
58 | return res; | 59 | return res; |
59 | } | 60 | } |
60 | 61 | ||
61 | static inline struct hlist_nulls_head *ping_hashslot(struct ping_table *table, | 62 | static inline struct hlist_nulls_head *ping_hashslot(struct ping_table *table, |
62 | struct net *net, unsigned num) | 63 | struct net *net, unsigned int num) |
63 | { | 64 | { |
64 | return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)]; | 65 | return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)]; |
65 | } | 66 | } |
@@ -188,7 +189,8 @@ static void inet_get_ping_group_range_net(struct net *net, gid_t *low, | |||
188 | gid_t *high) | 189 | gid_t *high) |
189 | { | 190 | { |
190 | gid_t *data = net->ipv4.sysctl_ping_group_range; | 191 | gid_t *data = net->ipv4.sysctl_ping_group_range; |
191 | unsigned seq; | 192 | unsigned int seq; |
193 | |||
192 | do { | 194 | do { |
193 | seq = read_seqbegin(&sysctl_local_ports.lock); | 195 | seq = read_seqbegin(&sysctl_local_ports.lock); |
194 | 196 | ||