Rename struct slab_alloc to struct slab_allocator.
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 2 Feb 2015 14:35:17 +0000 (15:35 +0100)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 2 Feb 2015 14:35:19 +0000 (15:35 +0100)
commit3a8c19980a87a10ecf13115470ab930242000e22
tree40797767b9f296e6d46e18e033e45c6feebb70d4
parent0813a60a57d26d067eba03d41d707aad2904ebf7
Rename struct slab_alloc to struct slab_allocator.

We have a function with the following signature:

  void *slab_alloc(struct slab_alloc *);

which produces the following error message with g++:

  error: ‘void* slab_alloc(slab_alloc*)’ hides constructor for ‘struct
  slab_alloc’ [-Werror=shadow]

The two easy ways out are 1) renaming the function or 2) renaming the struct.
For clarity (and consistency with malloc and co) I've chosen to rename the
struct to "struct slab_allocator".

Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>
13 files changed:
include/arch/arm/barrelfish/core_state_arch.h
include/arch/x86/barrelfish/core_state_arch.h
include/barrelfish/memobj.h
include/barrelfish/slab.h
include/barrelfish/slot_alloc.h
include/mm/mm.h
include/target/arm/barrelfish/pmap_target.h
include/target/x86/barrelfish/pmap_target.h
lib/barrelfish/slab.c
lib/barrelfish/threads.c
lib/barrelfish/vspace/pinned.c
usr/mem_serv_dist/mem_serv.c
usr/mem_serv_dist/mem_serv.h