aboutsummaryrefslogtreecommitdiff
path: root/mkfs.ubifs/hashtable
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-23 21:52:42 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-24 15:29:34 +0300
commitae51fdc21dd5b299128ab04786a4f7528e09dae3 (patch)
tree06dac3b13d434467b78eccc8521de5381cb847cb /mkfs.ubifs/hashtable
parentd3ea22379a4f8c2c98d50655547cf2041a3c1c8c (diff)
mkfs.ubifs: use common ARRAY_SIZE
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'mkfs.ubifs/hashtable')
-rw-r--r--mkfs.ubifs/hashtable/hashtable.c3
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;
/*****************************************************************************/