diff options
author | Ralf S. Engelschall <rse@FreeBSD.org> | 2009-06-01 10:50:17 +0000 |
---|---|---|
committer | Ralf S. Engelschall <rse@FreeBSD.org> | 2009-06-01 10:50:17 +0000 |
commit | ac08b882509e9f46241097df55edbce22e7f7646 (patch) | |
tree | c4cf7e9300fd6592d71d06e3217c88c7bf2ac864 /bin/sh/memalloc.h | |
parent | d4b5cae49bff736c08586be8199e09a511ca711b (diff) | |
download | src-ac08b882509e9f46241097df55edbce22e7f7646.tar.gz src-ac08b882509e9f46241097df55edbce22e7f7646.zip |
be more type correct and align local ckmalloc() with its underlying malloc(3) by using a "size_t" instead of an "int" argument
Notes
Notes:
svn path=/head/; revision=193221
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 347544211f51..4652e5411593 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 *); |