summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_vnops.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-02-10 21:56:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-02-10 21:56:11 +0000
commitfb06ed88b5810f53d16a2f3f90904ed7ea4de07a (patch)
tree0ad268ca945306e22e87692f6bb02fcd1220d0e4 /sys/ntfs/ntfs_vnops.c
parent4ed4205fc6bdb404dcf67f9f19347eea957f5982 (diff)
First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
Diffstat (limited to 'sys/ntfs/ntfs_vnops.c')
-rw-r--r--sys/ntfs/ntfs_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ntfs/ntfs_vnops.c b/sys/ntfs/ntfs_vnops.c
index 0da88f8b448..642ff256709 100644
--- a/sys/ntfs/ntfs_vnops.c
+++ b/sys/ntfs/ntfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vnops.c,v 1.37 2014/12/16 19:56:33 tedu Exp $ */
+/* $OpenBSD: ntfs_vnops.c,v 1.38 2015/02/10 21:56:10 miod Exp $ */
/* $NetBSD: ntfs_vnops.c,v 1.6 2003/04/10 21:57:26 jdolecek Exp $ */
/*
@@ -498,7 +498,7 @@ ntfs_readdir(void *v)
cde.d_off = sizeof(struct dirent);
cde.d_name[0] = '.';
cde.d_name[1] = '\0';
- error = uiomove(&cde, sizeof(struct dirent), uio);
+ error = uiomovei(&cde, sizeof(struct dirent), uio);
if (error)
goto out;
}
@@ -513,7 +513,7 @@ ntfs_readdir(void *v)
cde.d_name[0] = '.';
cde.d_name[1] = '.';
cde.d_name[2] = '\0';
- error = uiomove(&cde, sizeof(struct dirent), uio);
+ error = uiomovei(&cde, sizeof(struct dirent), uio);
if (error)
goto out;
}
@@ -559,7 +559,7 @@ ntfs_readdir(void *v)
cde.d_off = uio->uio_offset + sizeof(struct dirent);
DPRINTF("%s\n", cde.d_type == DT_DIR ? "dir" : "reg");
- error = uiomove(&cde, sizeof(struct dirent), uio);
+ error = uiomovei(&cde, sizeof(struct dirent), uio);
if (error)
goto out;
num++;