summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-01 07:35:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-01 07:35:36 +0000
commit0708092482e5d8d6d12b84ac12deda04243d5959 (patch)
tree0a6a0c473425deb7243a1e6475fda220c0cebea4 /sys
parent68fd88eac1cb9c4f4521b54e76cd69871c606d50 (diff)
wrong cast checking for VOP_BMAP return value; ok miod
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm_swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c
index afc772d1df9..e81a14627bb 100644
--- a/sys/uvm/uvm_swap.c
+++ b/sys/uvm/uvm_swap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_swap.c,v 1.69 2007/05/29 00:17:33 thib Exp $ */
+/* $OpenBSD: uvm_swap.c,v 1.70 2007/06/01 07:35:35 deraadt Exp $ */
/* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */
/*
@@ -1327,7 +1327,7 @@ sw_reg_strategy(sdp, bp, bn)
error = VOP_BMAP(sdp->swd_vp, byteoff / sdp->swd_bsize,
&vp, &nbn, &nra);
- if (error == 0 && nbn == (daddr_t)-1) {
+ if (error == 0 && nbn == (daddr64_t)-1) {
/*
* this used to just set error, but that doesn't
* do the right thing. Instead, it causes random