diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-10-07 01:30:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-10-07 01:30:30 +0000 |
commit | 252277d7506fef610326b17ddbf5d1d42d244e52 (patch) | |
tree | ce12cc35b576733fffb3b1ba7049b0564b984579 /libc/stdlib/malloc/alloc.c | |
parent | 8187b0ccda766ff2000e954f01ba918faefc05d2 (diff) |
Warning cleanup
Diffstat (limited to 'libc/stdlib/malloc/alloc.c')
-rw-r--r-- | libc/stdlib/malloc/alloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/stdlib/malloc/alloc.c b/libc/stdlib/malloc/alloc.c index 5e508f9c1..f981906e0 100644 --- a/libc/stdlib/malloc/alloc.c +++ b/libc/stdlib/malloc/alloc.c @@ -1,7 +1,8 @@ -#include <unistd.h> -#include <sys/mman.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> +#include <unistd.h> +#include <sys/mman.h> struct chunkControl { size_t nodeCount; @@ -33,7 +34,7 @@ calloc_dbg(size_t num, size_t size, char * function, char * file, int line) void * ptr; fprintf(stderr, "calloc of %d bytes at %s @%s:%d = ", num*size, function, file, line); ptr = calloc(num,size); - fprtinf(stderr, "%p\n", ptr); + fprintf(stderr, "%p\n", ptr); return ptr; } |