summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.h
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2011-02-23 10:28:37 +0000
committerbrucec <brucec@FreeBSD.org>2011-02-23 10:28:37 +0000
commit2d8d5824cbb55d453885b2422dd70a71af790378 (patch)
tree4523239e628214eb90f90e68c6a954c3e0e6240e /sys/vm/vm_map.h
parent4a353c54fd50cc1f3c96120b018c49874880504f (diff)
downloadFreeBSD-src-2d8d5824cbb55d453885b2422dd70a71af790378.zip
FreeBSD-src-2d8d5824cbb55d453885b2422dd70a71af790378.tar.gz
Calculate and return the count in vmspace_swap_count as a vm_offset_t
instead of an int to avoid overflow. While here, clean up some style(9) issues. PR: kern/152200 Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/vm/vm_map.h')
-rw-r--r--sys/vm/vm_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h
index 7ad06b3..9b3793a 100644
--- a/sys/vm/vm_map.h
+++ b/sys/vm/vm_map.h
@@ -380,6 +380,6 @@ int vm_map_unwire(vm_map_t map, vm_offset_t start, vm_offset_t end,
int flags);
int vm_map_wire(vm_map_t map, vm_offset_t start, vm_offset_t end,
int flags);
-int vmspace_swap_count (struct vmspace *vmspace);
+vm_offset_t vmspace_swap_count(struct vmspace *vmspace);
#endif /* _KERNEL */
#endif /* _VM_MAP_ */
OpenPOWER on IntegriCloud