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>
This commit is contained in:

committed by
David S. Miller

parent
5e73ea1a31
commit
95c9617472
@@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user