From df7ebfa9c3935d1491132964072c2a8d9b2a4d5c Mon Sep 17 00:00:00 2001 From: he Date: Wed, 19 May 2004 22:02:05 +0000 Subject: [PATCH] Move variable declaration up before the code. Fixes compile error for vax, and also conforms better to KNF. --- sys/uvm/uvm_map.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 748ba9796d6e..e17535c056d4 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_map.c,v 1.171 2004/05/04 21:33:40 pk Exp $ */ +/* $NetBSD: uvm_map.c,v 1.172 2004/05/19 22:02:05 he Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.171 2004/05/04 21:33:40 pk Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.172 2004/05/19 22:02:05 he Exp $"); #include "opt_ddb.h" #include "opt_uvmhist.h" @@ -3573,11 +3573,13 @@ uvmspace_free(struct vmspace *vm) { struct vm_map_entry *dead_entries; struct vm_map *map = &vm->vm_map; + int n; + UVMHIST_FUNC("uvmspace_free"); UVMHIST_CALLED(maphist); UVMHIST_LOG(maphist,"(vm=0x%x) ref=%d", vm, vm->vm_refcnt,0,0); simple_lock(&map->ref_lock); - int n = --vm->vm_refcnt; + n = --vm->vm_refcnt; simple_unlock(&map->ref_lock); if (n > 0) return;