net: cleanup unsigned to unsigned int
[linux-2.6-block.git] / net / phonet / socket.c
index 4c7eff30dfa9e4cc3bb54418e4dda44841b4d9be..89cfa9ce49395cfe2e64c738e249ba7891453eaa 100644 (file)
@@ -58,7 +58,7 @@ static struct  {
 
 void __init pn_sock_init(void)
 {
-       unsigned i;
+       unsigned int i;
 
        for (i = 0; i < PN_HASHSIZE; i++)
                INIT_HLIST_HEAD(pnsocks.hlist + i);
@@ -116,7 +116,7 @@ struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn)
 void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb)
 {
        struct hlist_head *hlist = pnsocks.hlist;
-       unsigned h;
+       unsigned int h;
 
        rcu_read_lock();
        for (h = 0; h < PN_HASHSIZE; h++) {
@@ -545,7 +545,7 @@ static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos)
        struct hlist_head *hlist = pnsocks.hlist;
        struct hlist_node *node;
        struct sock *sknode;
-       unsigned h;
+       unsigned int h;
 
        for (h = 0; h < PN_HASHSIZE; h++) {
                sk_for_each_rcu(sknode, node, hlist) {
@@ -710,7 +710,7 @@ int pn_sock_unbind_res(struct sock *sk, u8 res)
 
 void pn_sock_unbind_all_res(struct sock *sk)
 {
-       unsigned res, match = 0;
+       unsigned int res, match = 0;
 
        mutex_lock(&resource_mutex);
        for (res = 0; res < 256; res++) {
@@ -732,7 +732,7 @@ void pn_sock_unbind_all_res(struct sock *sk)
 static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos)
 {
        struct net *net = seq_file_net(seq);
-       unsigned i;
+       unsigned int i;
 
        if (!net_eq(net, &init_net))
                return NULL;
@@ -750,7 +750,7 @@ static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos)
 static struct sock **pn_res_get_next(struct seq_file *seq, struct sock **sk)
 {
        struct net *net = seq_file_net(seq);
-       unsigned i;
+       unsigned int i;
 
        BUG_ON(!net_eq(net, &init_net));