*/
void *mremap(void *old_address, size_t old_size, size_t new_size, int flags)
{
- void *new_arena;
+ void *new_address;
assert(flags & MREMAP_MAYMOVE);
assert(!(flags & MREMAP_FIXED));
if (registry_arena.len
< registry_arena.used + sizeof(struct rcu_reader))
resize_arena(®istry_arena,
- max(registry_arena.len << 1, ARENA_INIT_ALLOC));
+ caa_max(registry_arena.len << 1, ARENA_INIT_ALLOC));
/*
* Find a free spot.
*/