Only in libaal-1.0.5.orig: libaal-1.0.5 diff -ur libaal-1.0.5.orig/src/malloc.c libaal-1.0.5/src/malloc.c --- libaal-1.0.5.orig/src/malloc.c 2005-07-28 21:13:41.000000000 +0200 +++ libaal-1.0.5/src/malloc.c 2009-02-15 12:35:31.000000000 +0100 @@ -105,8 +105,8 @@ s = chunk->len - size - sizeof(chunk_t); new = forw ? - (char *)chunk + sizeof(chunk_t) + size : - (char *)chunk + sizeof(chunk_t) + s; + (void *)chunk + sizeof(chunk_t) + size : + (void *)chunk + sizeof(chunk_t) + s; /* Okay, we have found chunk good enough. And now we split it onto two chunks. */ @@ -121,8 +121,8 @@ area_free -= (size + sizeof(chunk_t)); return forw ? - (char *)chunk + sizeof(chunk_t): - (char *)new + sizeof(chunk_t); + (void *)chunk + sizeof(chunk_t): + (void *)new + sizeof(chunk_t); } /* Makes search for proper memory chunk in list of chunks. If found, split it in @@ -157,7 +157,7 @@ } #define ptr2chunk(ptr) \ - ((chunk_t *)((int)ptr - sizeof(chunk_t))) + ((chunk_t *)((long)ptr - sizeof(chunk_t))) /* Frees passed memory pointer */ static void __chunk_free(void *ptr) {