scripts

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

commit 118d226f534a1f201e7a14945ac632a73e9f2d2f
parent faf44fd5917251a56e5264e238417d06d5dd288f
Author: sin <sin@2f30.org>
Date:   Fri,  2 Aug 2013 11:34:23 +0100

Use void * instead of char *

Diffstat:
Mrandom/rballoc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/random/rballoc.c b/random/rballoc.c @@ -94,7 +94,7 @@ alloc_object(size_t siz) static void * sbrk_aligned(size_t align, size_t siz) { - char *p; + void *p; if ((align - 1) & align) return NULL; @@ -103,7 +103,7 @@ sbrk_aligned(size_t align, size_t siz) return NULL; sd.siz += siz + align; p = sd.base; - p = (char *)(((uintptr_t)p + align) & ~(align - 1)); + p = (void *)(((uintptr_t)p + align) & ~(align - 1)); return p; }