summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2011-02-14 02:44:59 (GMT)
committerJason Evans <je@fb.com>2011-02-14 02:44:59 (GMT)
commit655f04a5a47b5292e328bb902fb5f574d09e2e9d (patch)
treee63894157eab785dc37d123fd6c148b0a6c1d87b
parent9dcad2dfd11762ea3b542ef45a20bd8297c6f18c (diff)
downloadjemalloc-655f04a5a47b5292e328bb902fb5f574d09e2e9d.zip
jemalloc-655f04a5a47b5292e328bb902fb5f574d09e2e9d.tar.gz
jemalloc-655f04a5a47b5292e328bb902fb5f574d09e2e9d.tar.bz2
Fix style nits.
-rw-r--r--jemalloc/include/jemalloc/internal/hash.h2
-rw-r--r--jemalloc/include/jemalloc/internal/jemalloc_internal.h.in6
-rw-r--r--jemalloc/src/chunk_mmap.c6
3 files changed, 8 insertions, 6 deletions
diff --git a/jemalloc/include/jemalloc/internal/hash.h b/jemalloc/include/jemalloc/internal/hash.h
index d12cdb8..9073d83 100644
--- a/jemalloc/include/jemalloc/internal/hash.h
+++ b/jemalloc/include/jemalloc/internal/hash.h
@@ -62,7 +62,7 @@ hash(const void *key, size_t len, uint64_t seed)
h *= m;
h ^= h >> r;
- return h;
+ return (h);
}
#endif
diff --git a/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in b/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
index d9bac50..14686bf 100644
--- a/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
+++ b/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
@@ -407,10 +407,10 @@ s2u(size_t size)
{
if (size <= small_maxclass)
- return arenas[0]->bins[small_size2bin[size]].reg_size;
+ return (arenas[0]->bins[small_size2bin[size]].reg_size);
if (size <= arena_maxclass)
- return PAGE_CEILING(size);
- return CHUNK_CEILING(size);
+ return (PAGE_CEILING(size));
+ return (CHUNK_CEILING(size));
}
/*
diff --git a/jemalloc/src/chunk_mmap.c b/jemalloc/src/chunk_mmap.c
index bc36755..164e86e 100644
--- a/jemalloc/src/chunk_mmap.c
+++ b/jemalloc/src/chunk_mmap.c
@@ -206,13 +206,15 @@ chunk_alloc_mmap_internal(size_t size, bool noreserve)
void *
chunk_alloc_mmap(size_t size)
{
- return chunk_alloc_mmap_internal(size, false);
+
+ return (chunk_alloc_mmap_internal(size, false));
}
void *
chunk_alloc_mmap_noreserve(size_t size)
{
- return chunk_alloc_mmap_internal(size, true);
+
+ return (chunk_alloc_mmap_internal(size, true));
}
void