* [PATCH] net/ipv4/af_inet.c: use ARRAY_SIZE macro from kernel.h instead
@ 2007-09-02 4:59 Denis Cheng
2007-09-16 23:39 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Denis Cheng @ 2007-09-02 4:59 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, linux-kernel, cr_quan
Signed-off-by: Denis Cheng <crquan@gmail.com>
---
net/ipv4/af_inet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index e681034..d5e8b67 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -939,7 +939,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)
{
--
1.5.3.rc7
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-16 23:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-02 4:59 [PATCH] net/ipv4/af_inet.c: use ARRAY_SIZE macro from kernel.h instead Denis Cheng
2007-09-16 23:39 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).