diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-10-10 12:00:53 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-10-10 12:00:53 +0000 |
commit | b7c7fc0bd7b2a8590867c5e3060bfae9606020c7 (patch) | |
tree | e95d96f84b77b03a8e4ae6b3ebc772329ae7f3d0 /lib/libc/stdlib/malloc.c | |
parent | 39528b504c0ce66fdd1d03b71ff3b0f9f3fd1eb0 (diff) |
Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.
Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br>
Thanks.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c index cb2ba737ae6..a3babab20a4 100644 --- a/lib/libc/stdlib/malloc.c +++ b/lib/libc/stdlib/malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.c,v 1.78 2005/10/05 18:38:10 deraadt Exp $ */ +/* $OpenBSD: malloc.c,v 1.79 2005/10/10 12:00:52 espie Exp $ */ /* * ---------------------------------------------------------------------------- @@ -48,6 +48,7 @@ #include <fcntl.h> #include <limits.h> #include <errno.h> +#include <err.h> #include "thread_private.h" @@ -741,8 +742,7 @@ static void * malloc_pages(size_t size) { void *p, *delay_free = NULL, *tp; - int i, m; - struct rlimit rl; + int i; struct pginfo **pd; struct pdinfo *pi; u_long pidx, index; |