summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-02 04:13:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-02 04:13:38 +0000
commit62c62a1ac372923efe5c21fbc5c7b2cfb65ee52f (patch)
treecceb46a943bbf0456c2b81d5d5b173bf813e3c0b /sys/kern
parenta24449ed1570610f4e388a08f2d9fc081e4b9b60 (diff)
it is better when ramdisks compile
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sys_generic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c
index 2ace5491bff..ee0d4817970 100644
--- a/sys/kern/sys_generic.c
+++ b/sys/kern/sys_generic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_generic.c,v 1.61 2009/06/02 03:04:09 blambert Exp $ */
+/* $OpenBSD: sys_generic.c,v 1.62 2009/06/02 04:13:37 deraadt Exp $ */
/* $NetBSD: sys_generic.c,v 1.24 1996/03/29 00:25:32 cgd Exp $ */
/*
@@ -161,8 +161,8 @@ dofilereadv(struct proc *p, int fd, struct file *fp, const struct iovec *iov,
{
struct uio auio;
long i, cnt, error = 0;
- u_int iovlen = iovcnt * sizeof(struct iovec);
#ifdef KTRACE
+ u_int iovlen = iovcnt * sizeof(struct iovec);
struct iovec *ktriov = NULL;
#endif
@@ -311,8 +311,8 @@ dofilewritev(struct proc *p, int fd, struct file *fp, const struct iovec *iov,
{
struct uio auio;
long i, cnt, error = 0;
- u_int iovlen;
#ifdef KTRACE
+ u_int iovlen;
struct iovec *ktriov = NULL;
#endif