projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab19ea
)
ipvs: Use ARRAY_SIZE()
author
Sven Wegener
<sven.wegener@stealer.net>
Sun, 10 Aug 2008 09:18:01 +0000
(09:18 +0000)
committer
Sven Wegener
<sven.wegener@stealer.net>
Mon, 11 Aug 2008 09:45:48 +0000
(11:45 +0200)
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/ip_vs.h
b/include/net/ip_vs.h
index cbb59ebed4aebaf7003d3db98b061e7b07b5d9f7..e980416bff811683097b888d89720aa4e96fdcd8 100644
(file)
--- a/
include/net/ip_vs.h
+++ b/
include/net/ip_vs.h
@@
-440,7
+440,7
@@
struct ip_vs_app
*/
extern const char *ip_vs_proto_name(unsigned proto);
extern void ip_vs_init_hash_table(struct list_head *table, int rows);
-#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table(
t, sizeof(t)/sizeof(t[0]
))
+#define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table(
(t), ARRAY_SIZE((t)
))
#define IP_VS_APP_TYPE_FTP 1