summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs/msdosfs_vnops.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-09-14 02:28:01 +0000
committerguenther <guenther@openbsd.org>2013-09-14 02:28:01 +0000
commit906c107fe741533fa541cf56f7975333e94df8a3 (patch)
tree736131eb506732ae919749f1e27c0a166686da7d /sys/msdosfs/msdosfs_vnops.c
parentmiod completed the ELF conversion (and didn't even use this compat bit), (diff)
downloadwireguard-openbsd-906c107fe741533fa541cf56f7975333e94df8a3.tar.xz
wireguard-openbsd-906c107fe741533fa541cf56f7975333e94df8a3.zip
Correct the handling of I/O of >=2^32 bytes and the ktracing there of
by using size_t/ssize_t instead of int/u_int to handle I/O lengths in uiomove(), vn_fsizechk(), and ktrgenio(). Eliminate the always-zero 'error' argument to ktrgenio() at the same time.
Diffstat (limited to 'sys/msdosfs/msdosfs_vnops.c')
-rw-r--r--sys/msdosfs/msdosfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index 9d1bd021f26..23f61e343c9 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.88 2013/08/13 05:52:24 guenther Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.89 2013/09/14 02:28:03 guenther Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -594,7 +594,7 @@ msdosfs_write(void *v)
int n;
int croffset;
int resid;
- int overrun;
+ ssize_t overrun;
int extended = 0;
uint32_t osize;
int error = 0;