summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authortholo <>1996-09-15 09:31:53 +0000
committertholo <>1996-09-15 09:31:53 +0000
commit27b62657a94b21845fcea14320c285cb5b1a2800 (patch)
tree947900ef381c1a838cf05f934ed5349615aac605 /src/lib/libc/stdlib/malloc.c
parent5db356f3a7b6b461177c41660da527087e8d4399 (diff)
downloadopenbsd-27b62657a94b21845fcea14320c285cb5b1a2800.tar.gz
openbsd-27b62657a94b21845fcea14320c285cb5b1a2800.tar.bz2
openbsd-27b62657a94b21845fcea14320c285cb5b1a2800.zip
Remove dead code
Remove unused variables Silence some warnings lint(1) is your friend
Diffstat (limited to 'src/lib/libc/stdlib/malloc.c')
-rw-r--r--src/lib/libc/stdlib/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c
index bdae6f00a3..54a802b0c9 100644
--- a/src/lib/libc/stdlib/malloc.c
+++ b/src/lib/libc/stdlib/malloc.c
@@ -8,7 +8,7 @@
8 */ 8 */
9 9
10#if defined(LIBC_SCCS) && !defined(lint) 10#if defined(LIBC_SCCS) && !defined(lint)
11static char rcsid[] = "$OpenBSD: malloc.c,v 1.10 1996/09/11 03:04:43 deraadt Exp $"; 11static char rcsid[] = "$OpenBSD: malloc.c,v 1.11 1996/09/15 09:31:49 tholo Exp $";
12#endif /* LIBC_SCCS and not lint */ 12#endif /* LIBC_SCCS and not lint */
13 13
14/* 14/*
@@ -813,7 +813,7 @@ malloc_bytes(size)
813 ; 813 ;
814 814
815 /* Find that bit, and tweak it */ 815 /* Find that bit, and tweak it */
816 k = ffs(*lp) - 1; 816 k = ffs((unsigned)*lp) - 1;
817 *lp ^= 1<<k; 817 *lp ^= 1<<k;
818 818
819 /* If there are no more free, remove from free-list */ 819 /* If there are no more free, remove from free-list */