summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMike Pechkin <mpech@cvs.openbsd.org>2002-09-17 13:01:21 +0000
committerMike Pechkin <mpech@cvs.openbsd.org>2002-09-17 13:01:21 +0000
commit3b314c4b42a569e88cdbd405c0601e9328e28d1b (patch)
treec18664d03cce118c9bc58e52ad5425bca1977b80 /sys/uvm
parentc82d6ae7d51a0d747311de7946fea210edc17853 (diff)
int is small for returned values from uvm_rb_{space,subtree_space}, use
vsize_t instead. art@ ok
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index 06d0a0e16c4..eec936f1872 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.51 2002/08/30 09:56:22 espie Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.52 2002/09/17 13:01:20 mpech Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -190,7 +190,7 @@ static void uvm_map_unreference_amap(vm_map_entry_t, int);
int uvm_map_spacefits(vm_map_t, vaddr_t *, vsize_t, vm_map_entry_t, voff_t, vsize_t);
int _uvm_tree_sanity(vm_map_t map, char *name);
-static int uvm_rb_subtree_space(vm_map_entry_t);
+static vsize_t uvm_rb_subtree_space(vm_map_entry_t);
static __inline int
uvm_compare(vm_map_entry_t a, vm_map_entry_t b)
@@ -214,7 +214,7 @@ RB_PROTOTYPE(uvm_tree, vm_map_entry, rb_entry, uvm_compare);
RB_GENERATE(uvm_tree, vm_map_entry, rb_entry, uvm_compare);
-static __inline int
+static __inline vsize_t
uvm_rb_space(vm_map_t map, vm_map_entry_t entry)
{
vm_map_entry_t next;
@@ -229,7 +229,7 @@ uvm_rb_space(vm_map_t map, vm_map_entry_t entry)
return (space);
}
-static int
+static vsize_t
uvm_rb_subtree_space(vm_map_entry_t entry)
{
vaddr_t space, tmp;