summaryrefslogtreecommitdiff
path: root/sal/rtl/source/alloc_global.c
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-18 19:47:47 +0100
committerMichael Meeks <michael.meeks@novell.com>2010-10-18 19:47:47 +0100
commit5ecab7a09f86843667520dafb158d569715ea214 (patch)
tree6f5d36081c7a4981a5553e83beecd4e3ee4704aa /sal/rtl/source/alloc_global.c
parenta8ac6c40db8f3b0ba1693c6e7135fb559e56be2c (diff)
cleanup to use SAL_N_ELEMENTS
Diffstat (limited to 'sal/rtl/source/alloc_global.c')
-rw-r--r--sal/rtl/source/alloc_global.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/rtl/source/alloc_global.c b/sal/rtl/source/alloc_global.c
index b7612bc6f..9171b492e 100644
--- a/sal/rtl/source/alloc_global.c
+++ b/sal/rtl/source/alloc_global.c
@@ -26,6 +26,7 @@
************************************************************************/
#include "rtl/alloc.h"
+#include <sal/macros.h>
#ifndef INCLUDED_STRING_H
#include <string.h>
@@ -72,7 +73,7 @@ static const sal_Size g_alloc_sizes[] =
};
#define RTL_MEMORY_CACHED_LIMIT 4 * 4096
-#define RTL_MEMORY_CACHED_SIZES (sizeof(g_alloc_sizes) / sizeof(g_alloc_sizes[0]))
+#define RTL_MEMORY_CACHED_SIZES (SAL_N_ELEMENTS(g_alloc_sizes))
static rtl_cache_type * g_alloc_caches[RTL_MEMORY_CACHED_SIZES] =
{