summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-09-15 09:32:02 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-09-15 09:32:02 +0000
commit5839b84db8fa4a49976868786c93b29df9c4d568 (patch)
treeef3d545e61baa18f319312ada4e97e2c799c24c6 /lib/libc/stdlib/malloc.c
parent1d3f47d20a2b64c481a047ce24f39564b3e74533 (diff)
Remove dead code
Remove unused variables Silence some warnings lint(1) is your friend
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
-rw-r--r--lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index bdae6f00a32..54a802b0c95 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -8,7 +8,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: malloc.c,v 1.10 1996/09/11 03:04:43 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: malloc.c,v 1.11 1996/09/15 09:31:49 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -813,7 +813,7 @@ malloc_bytes(size)
;
/* Find that bit, and tweak it */
- k = ffs(*lp) - 1;
+ k = ffs((unsigned)*lp) - 1;
*lp ^= 1<<k;
/* If there are no more free, remove from free-list */