diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-01-30 00:19:41 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-01-30 00:19:41 +0000 |
commit | de069631fd3bce2e513ee8613a94038f23afe1b3 (patch) | |
tree | 0b8d9d99cdfb52e8d0c3f85c45859a42ed004bd3 /gnu/usr.bin/cvs/lib/valloc.c | |
parent | 2b9936f3f7ab47a89436d4fa3b70e4c09dd2398e (diff) |
Upgrade to 1.7.1 snapshot
Diffstat (limited to 'gnu/usr.bin/cvs/lib/valloc.c')
-rw-r--r-- | gnu/usr.bin/cvs/lib/valloc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gnu/usr.bin/cvs/lib/valloc.c b/gnu/usr.bin/cvs/lib/valloc.c index ce37da7ad3a..674b60f6e91 100644 --- a/gnu/usr.bin/cvs/lib/valloc.c +++ b/gnu/usr.bin/cvs/lib/valloc.c @@ -1,14 +1,18 @@ /* valloc -- return memory aligned to the page size. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "system.h" + #ifndef HAVE_GETPAGESIZE #define getpagesize() 4096 #endif -extern char *malloc (); - -char * +void * valloc (bytes) - int bytes; + size_t bytes; { long pagesize; char *ret; |