diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2008-08-10 05:18:01 -0400 |
---|---|---|
committer | Sven Wegener <sven.wegener@stealer.net> | 2008-08-11 05:45:48 -0400 |
commit | afdd614071aef652f5a3e2a06965de049dd8339b (patch) | |
tree | 8daa411ae7abebf9105f9084a7d08e24bdc41e18 | |
parent | 8ab19ea36c5c5340ff598e4d15fc084eb65671dc (diff) |
ipvs: Use ARRAY_SIZE()
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | include/net/ip_vs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index cbb59ebed4ae..e980416bff81 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -440,7 +440,7 @@ struct ip_vs_app | |||
440 | */ | 440 | */ |
441 | extern const char *ip_vs_proto_name(unsigned proto); | 441 | extern const char *ip_vs_proto_name(unsigned proto); |
442 | extern void ip_vs_init_hash_table(struct list_head *table, int rows); | 442 | extern void ip_vs_init_hash_table(struct list_head *table, int rows); |
443 | #define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table(t, sizeof(t)/sizeof(t[0])) | 443 | #define IP_VS_INIT_HASH_TABLE(t) ip_vs_init_hash_table((t), ARRAY_SIZE((t))) |
444 | 444 | ||
445 | #define IP_VS_APP_TYPE_FTP 1 | 445 | #define IP_VS_APP_TYPE_FTP 1 |
446 | 446 | ||