From 73556bfee1b1d6dfc2a2f5d400228ca90bb34fc9 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 6 May 1999 18:13:11 +0000 Subject: Add sufficient braces to keep egcs happy about potentially ambiguous if/else nesting. --- sys/kern/kern_malloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_malloc.c') diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index d3939b8..e7499d5 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94 - * $Id: kern_malloc.c,v 1.53 1999/01/21 21:54:32 msmith Exp $ + * $Id: kern_malloc.c,v 1.54 1999/01/27 21:49:56 dillon Exp $ */ #include "opt_vm.h" @@ -348,11 +348,12 @@ free(addr, type) freep->type = type; #endif /* INVARIANTS */ kup->ku_freecnt++; - if (kup->ku_freecnt >= kbp->kb_elmpercl) + if (kup->ku_freecnt >= kbp->kb_elmpercl) { if (kup->ku_freecnt > kbp->kb_elmpercl) panic("free: multiple frees"); else if (kbp->kb_totalfree > kbp->kb_highwat) kbp->kb_couldfree++; + } kbp->kb_totalfree++; ksp->ks_memuse -= size; if (ksp->ks_memuse + size >= ksp->ks_limit && -- cgit v1.1