Skip to content

Commit

Permalink
[IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis Cheng authored and David S. Miller committed Oct 10, 2007
1 parent 26ff5dd commit c40f6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ static struct inet_protosw inetsw_array[] =
}
};

#define INETSW_ARRAY_LEN (sizeof(inetsw_array) / sizeof(struct inet_protosw))
#define INETSW_ARRAY_LEN ARRAY_SIZE(inetsw_array)

void inet_register_protosw(struct inet_protosw *p)
{
Expand Down

0 comments on commit c40f6ff

Please sign in to comment.