From f1f19c639c7fa6254ab9cd7d40a28d38b245f844 Mon Sep 17 00:00:00 2001 From: gallatin Date: Mon, 28 Jun 2004 19:58:39 +0000 Subject: [PATCH] Use MIN() macro rather than ulmin() inline, and fix stray tab that snuck in with my last commit. Submitted by: green --- sys/vm/vm_map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e15cf098d719..55726f5a7dc6 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -2360,12 +2360,12 @@ vmspace_map_entry_forked(const struct vmspace *vm1, struct vmspace *vm2, vm2->vm_ssize += btoc(entrysize); } else if (entry->start >= (vm_offset_t)vm1->vm_daddr && entry->start < (vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize)) { - newend = ulmin(entry->end, + newend = MIN(entry->end, (vm_offset_t)vm1->vm_daddr + ctob(vm1->vm_dsize)); - vm2->vm_dsize += btoc(newend - entry->start); + vm2->vm_dsize += btoc(newend - entry->start); } else if (entry->start >= (vm_offset_t)vm1->vm_taddr && entry->start < (vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize)) { - newend = ulmin(entry->end, + newend = MIN(entry->end, (vm_offset_t)vm1->vm_taddr + ctob(vm1->vm_tsize)); vm2->vm_tsize += btoc(newend - entry->start); }