diff options
author | rse <rse@FreeBSD.org> | 2009-06-01 10:50:17 +0000 |
---|---|---|
committer | rse <rse@FreeBSD.org> | 2009-06-01 10:50:17 +0000 |
commit | 88b5665aec3867f4281c38a6100590462cc8fa75 (patch) | |
tree | c4cf7e9300fd6592d71d06e3217c88c7bf2ac864 /bin/sh/memalloc.h | |
parent | 2bab6955606e0d2046018b3a7a9f06775f06b145 (diff) | |
download | FreeBSD-src-88b5665aec3867f4281c38a6100590462cc8fa75.zip FreeBSD-src-88b5665aec3867f4281c38a6100590462cc8fa75.tar.gz |
be more type correct and align local ckmalloc() with its underlying malloc(3) by using a "size_t" instead of an "int" argument
Diffstat (limited to 'bin/sh/memalloc.h')
-rw-r--r-- | bin/sh/memalloc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sh/memalloc.h b/bin/sh/memalloc.h index 3475442..4652e54 100644 --- a/bin/sh/memalloc.h +++ b/bin/sh/memalloc.h @@ -33,6 +33,8 @@ * $FreeBSD$ */ +#include <string.h> + struct stackmark { struct stack_block *stackp; char *stacknxt; @@ -46,7 +48,7 @@ extern int stacknleft; extern int sstrnleft; extern int herefd; -pointer ckmalloc(int); +pointer ckmalloc(size_t); pointer ckrealloc(pointer, int); void ckfree(pointer); char *savestr(char *); |