diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2003-04-07 14:47:09 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2003-04-07 14:47:09 +0000 |
commit | b69f260d76cdff6fc4ec609b936bd24160326427 (patch) | |
tree | 931a8b62fc708b17c42c5bd0d5175cf991c90dd9 | |
parent | 6a42f1ceb9d8bf1ce8c9ab58ea73bf0ae97d8b42 (diff) |
int -> ssize_t.
+checked by regress.
millert@, art@ ok.
-rw-r--r-- | sys/uvm/uvm_mmap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index 7bd6a666c3d..0e09b0096f2 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.38 2003/01/09 22:27:12 miod Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.39 2003/04/07 14:47:08 mpech Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -560,7 +560,7 @@ sys_msync(p, v, retval) size = (vsize_t) round_page(size); /* disallow wrap-around. */ - if (addr + size < addr) + if (addr + (ssize_t)size < addr) return (EINVAL); /* @@ -651,7 +651,7 @@ sys_munmap(p, v, retval) size += pageoff; size = (vsize_t) round_page(size); - if ((int)size < 0) + if ((ssize_t)size < 0) return (EINVAL); if (size == 0) return (0); @@ -729,7 +729,7 @@ sys_mprotect(p, v, retval) addr -= pageoff; size += pageoff; size = (vsize_t) round_page(size); - if ((int)size < 0) + if ((ssize_t)size < 0) return (EINVAL); /* @@ -777,7 +777,7 @@ sys_minherit(p, v, retval) size += pageoff; size = (vsize_t) round_page(size); - if ((int)size < 0) + if ((ssize_t)size < 0) return (EINVAL); switch (uvm_map_inherit(&p->p_vmspace->vm_map, addr, addr+size, @@ -918,7 +918,7 @@ sys_mlock(p, v, retval) size = (vsize_t) round_page(size); /* disallow wrap-around. */ - if (addr + (int)size < addr) + if (addr + (ssize_t)size < addr) return (EINVAL); if (atop(size) + uvmexp.wired > uvmexp.wiredmax) @@ -972,7 +972,7 @@ sys_munlock(p, v, retval) size = (vsize_t) round_page(size); /* disallow wrap-around. */ - if (addr + (int)size < addr) + if (addr + (ssize_t)size < addr) return (EINVAL); #ifndef pmap_wired_count |