diff options
author | espie <> | 2005-10-10 12:00:52 +0000 |
---|---|---|
committer | espie <> | 2005-10-10 12:00:52 +0000 |
commit | 660ef42354e54870e4a7899f6a870f0330f44196 (patch) | |
tree | a2beafdb98bb3b58a343a907e63146b9fa5c6bfb /src | |
parent | 2a58a01c235b48b7c83c93aca07480e6570c81c3 (diff) | |
download | openbsd-660ef42354e54870e4a7899f6a870f0330f44196.tar.gz openbsd-660ef42354e54870e4a7899f6a870f0330f44196.tar.bz2 openbsd-660ef42354e54870e4a7899f6a870f0330f44196.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 'src')
-rw-r--r-- | src/lib/libc/stdlib/malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index cb2ba737ae..a3babab20a 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc.c,v 1.78 2005/10/05 18:38:10 deraadt Exp $ */ | 1 | /* $OpenBSD: malloc.c,v 1.79 2005/10/10 12:00:52 espie Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ---------------------------------------------------------------------------- | 4 | * ---------------------------------------------------------------------------- |
@@ -48,6 +48,7 @@ | |||
48 | #include <fcntl.h> | 48 | #include <fcntl.h> |
49 | #include <limits.h> | 49 | #include <limits.h> |
50 | #include <errno.h> | 50 | #include <errno.h> |
51 | #include <err.h> | ||
51 | 52 | ||
52 | #include "thread_private.h" | 53 | #include "thread_private.h" |
53 | 54 | ||
@@ -741,8 +742,7 @@ static void * | |||
741 | malloc_pages(size_t size) | 742 | malloc_pages(size_t size) |
742 | { | 743 | { |
743 | void *p, *delay_free = NULL, *tp; | 744 | void *p, *delay_free = NULL, *tp; |
744 | int i, m; | 745 | int i; |
745 | struct rlimit rl; | ||
746 | struct pginfo **pd; | 746 | struct pginfo **pd; |
747 | struct pdinfo *pi; | 747 | struct pdinfo *pi; |
748 | u_long pidx, index; | 748 | u_long pidx, index; |