Module Name: src
Committed By: joerg
Date: Fri Apr 23 23:05:40 UTC 2010
Modified Files:
src/sys/compat/netbsd32: netbsd32_compat_43.c
Log Message:
Fix compilation.
To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/compat/netbsd32/netbsd32_compat_43.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/netbsd32/netbsd32_compat_43.c
diff -u src/sys/compat/netbsd32/netbsd32_compat_43.c:1.52 src/sys/compat/netbsd32/netbsd32_compat_43.c:1.53
--- src/sys/compat/netbsd32/netbsd32_compat_43.c:1.52 Fri Apr 23 15:19:20 2010
+++ src/sys/compat/netbsd32/netbsd32_compat_43.c Fri Apr 23 23:05:40 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_compat_43.c,v 1.52 2010/04/23 15:19:20 rmind Exp $ */
+/* $NetBSD: netbsd32_compat_43.c,v 1.53 2010/04/23 23:05:40 joerg Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.52 2010/04/23 15:19:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_compat_43.c,v 1.53 2010/04/23 23:05:40 joerg Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_43.h"
@@ -494,7 +494,7 @@
error = copyout(&omsg, SCARG_P32(uap, msg), sizeof(omsg));
out:
if (iov != aiov) {
- kmem_free(iov, omsg.msg_iovlen * sizeof(struct iov));
+ kmem_free(iov, omsg.msg_iovlen * sizeof(*iov));
}
return error;
}
@@ -551,7 +551,7 @@
out:
if (iov != aiov)
- kmem_free(iov, omsg.msg_iovlen * sizeof(struct iov));
+ kmem_free(iov, omsg.msg_iovlen * sizeof(*iov));
return (error);
}