summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-06-30 11:33:40 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-06-30 11:33:40 +0000
commitb65537a37a88ca560100dca65de3047c7059f1e8 (patch)
treeef770bbe507cb2ed13ef2e0b5a437b419f5aaf3c
parent2d3a3d841c994d6faeada033b2561dba3abdc673 (diff)
since we're not using 'len' for anything, nuke it and pass null to
copyin/copyout. suggested by millert@, ok'd by him and deraadt@
-rw-r--r--sys/dev/vnd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c
index 730529363fe..361c28131f6 100644
--- a/sys/dev/vnd.c
+++ b/sys/dev/vnd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vnd.c,v 1.51 2004/06/30 00:13:53 pedro Exp $ */
+/* $OpenBSD: vnd.c,v 1.52 2004/06/30 11:33:39 pedro Exp $ */
/* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */
/*
@@ -756,7 +756,6 @@ vndioctl(dev, cmd, addr, flag, p)
struct vattr vattr;
struct nameidata nd;
int error, part, pmask, s;
- size_t len;
#ifdef DEBUG
if (vnddebug & VDB_FOLLOW)
@@ -783,7 +782,7 @@ vndioctl(dev, cmd, addr, flag, p)
return (error);
if ((error = copyinstr(vio->vnd_file, vnd->sc_file,
- sizeof(vnd->sc_file), &len))) {
+ sizeof(vnd->sc_file), NULL))) {
vndunlock(vnd);
return (error);
}
@@ -923,7 +922,7 @@ vndioctl(dev, cmd, addr, flag, p)
return (error);
if ((error = copyoutstr(vnd->sc_file, vnu->vnu_file,
- sizeof(vnu->vnu_file), &len)))
+ sizeof(vnu->vnu_file), NULL)))
return (error);
vnu->vnu_dev = vattr.va_fsid;