summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-10-10 12:00:52 +0000
committerespie <espie@openbsd.org>2005-10-10 12:00:52 +0000
commitffd953dfae82e3b0e8b905f4243cb45b9174eedc (patch)
treecaa92540694c4802052e87653260b3ca7e27cfad /lib/libc/stdlib
parentless verbose listing of libraries (diff)
downloadwireguard-openbsd-ffd953dfae82e3b0e8b905f4243cb45b9174eedc.tar.xz
wireguard-openbsd-ffd953dfae82e3b0e8b905f4243cb45b9174eedc.zip
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')
-rw-r--r--lib/libc/stdlib/malloc.c6
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;