summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2014-05-21 09:01:21 (GMT)
committerJason Evans <je@fb.com>2014-05-27 22:20:31 (GMT)
commit86e2e703ffb3cc17e05af816df8895db62a9272e (patch)
treec17b9d4f6faf105b7dc77fec8296f4ffea6ba6eb /test/unit
parent7330c3770af0e5328d749635217387efbbe0ae3c (diff)
downloadjemalloc-86e2e703ffb3cc17e05af816df8895db62a9272e.zip
jemalloc-86e2e703ffb3cc17e05af816df8895db62a9272e.tar.gz
jemalloc-86e2e703ffb3cc17e05af816df8895db62a9272e.tar.bz2
Rename "small" local variable, because windows headers #define it
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/stats.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/stats.c b/test/unit/stats.c
index ab87b29..78c78cd 100644
--- a/test/unit/stats.c
+++ b/test/unit/stats.c
@@ -97,7 +97,7 @@ TEST_END
TEST_BEGIN(test_stats_arenas_summary)
{
unsigned arena;
- void *small, *large;
+ void *little, *large;
uint64_t epoch;
size_t sz;
int expected = config_stats ? 0 : ENOENT;
@@ -108,8 +108,8 @@ TEST_BEGIN(test_stats_arenas_summary)
assert_d_eq(mallctl("thread.arena", NULL, NULL, &arena, sizeof(arena)),
0, "Unexpected mallctl() failure");
- small = mallocx(SMALL_MAXCLASS, 0);
- assert_ptr_not_null(small, "Unexpected mallocx() failure");
+ little = mallocx(SMALL_MAXCLASS, 0);
+ assert_ptr_not_null(little, "Unexpected mallocx() failure");
large = mallocx(arena_maxclass, 0);
assert_ptr_not_null(large, "Unexpected mallocx() failure");
@@ -137,7 +137,7 @@ TEST_BEGIN(test_stats_arenas_summary)
"nmadvise should be no greater than purged");
}
- dallocx(small, 0);
+ dallocx(little, 0);
dallocx(large, 0);
}
TEST_END