From 655f04a5a47b5292e328bb902fb5f574d09e2e9d Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Sun, 13 Feb 2011 18:44:59 -0800 Subject: [PATCH] Fix style nits. --- jemalloc/include/jemalloc/internal/hash.h | 2 +- jemalloc/include/jemalloc/internal/jemalloc_internal.h.in | 6 +++--- jemalloc/src/chunk_mmap.c | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/jemalloc/include/jemalloc/internal/hash.h b/jemalloc/include/jemalloc/internal/hash.h index d12cdb83..9073d839 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 d9bac508..14686bfd 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 bc367559..164e86e7 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