net: cleanup unsigned to unsigned int
[linux-2.6-block.git] / net / ipv4 / ping.c
index 9f380ace22eed36f8c5fa4f872425739318b91b2..6e930c7174dd2e9d755e6c64c5e562974c33aa72 100644 (file)
@@ -51,15 +51,16 @@ static struct ping_table ping_table;
 
 static u16 ping_port_rover;
 
-static inline int ping_hashfn(struct net *net, unsigned num, unsigned mask)
+static inline int ping_hashfn(struct net *net, unsigned int num, unsigned int mask)
 {
        int res = (num + net_hash_mix(net)) & mask;
+
        pr_debug("hash(%d) = %d\n", num, res);
        return res;
 }
 
 static inline struct hlist_nulls_head *ping_hashslot(struct ping_table *table,
-                                            struct net *net, unsigned num)
+                                            struct net *net, unsigned int num)
 {
        return &table->hash[ping_hashfn(net, num, PING_HTABLE_MASK)];
 }
@@ -188,7 +189,8 @@ static void inet_get_ping_group_range_net(struct net *net, gid_t *low,
                                          gid_t *high)
 {
        gid_t *data = net->ipv4.sysctl_ping_group_range;
-       unsigned seq;
+       unsigned int seq;
+
        do {
                seq = read_seqbegin(&sysctl_local_ports.lock);