scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit f75282aa0cb6b8e6732b4295ad63ed8b085eb31c
parent ef84ad44d30d7a7cecb9a5d076afde2b11ffe918
Author: sin <sin@2f30.org>
Date:   Thu Aug  1 15:31:09 +0100

Inline {alloc,free}_object()

Diffstat:
random/rballoc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/random/rballoc.c b/random/rballoc.c @@ -67,7 +67,7 @@ dump_free_tree(void) __func__, n->buf, n->siz); } -static void * +static inline void * alloc_object(size_t siz) { void *p; @@ -79,7 +79,7 @@ alloc_object(size_t siz) return p; } -static void +static inline void free_object(void *p, size_t siz) { munmap(p, siz);