* [PATCH] mkfs.ubifs: use common ARRAY_SIZE
@ 2010-09-24 1:52 Mike Frysinger
2010-09-24 12:30 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-09-24 1:52 UTC (permalink / raw)
To: linux-mtd
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
mkfs.ubifs/hashtable/hashtable.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/mkfs.ubifs/hashtable/hashtable.c b/mkfs.ubifs/hashtable/hashtable.c
index 763357e..b751c62 100644
--- a/mkfs.ubifs/hashtable/hashtable.c
+++ b/mkfs.ubifs/hashtable/hashtable.c
@@ -1,5 +1,6 @@
/* Copyright (C) 2004 Christopher Clark <firstname.lastname@cl.cam.ac.uk> */
+#include "common.h"
#include "hashtable.h"
#include "hashtable_private.h"
#include <stdlib.h>
@@ -21,7 +22,7 @@ static const unsigned int primes[] = {
50331653, 100663319, 201326611, 402653189,
805306457, 1610612741
};
-const unsigned int prime_table_length = sizeof(primes)/sizeof(primes[0]);
+const unsigned int prime_table_length = ARRAY_SIZE(primes);
const float max_load_factor = 0.65;
/*****************************************************************************/
--
1.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-24 12:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-24 1:52 [PATCH] mkfs.ubifs: use common ARRAY_SIZE Mike Frysinger
2010-09-24 12:30 ` Artem Bityutskiy
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).