Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/netbsd32 Fix compilation.



details:   https://anonhg.NetBSD.org/src/rev/3fed0641fbf5
branches:  trunk
changeset: 754224:3fed0641fbf5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Apr 23 23:05:40 2010 +0000

description:
Fix compilation.

diffstat:

 sys/compat/netbsd32/netbsd32_compat_43.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1a29db4d4677 -r 3fed0641fbf5 sys/compat/netbsd32/netbsd32_compat_43.c
--- a/sys/compat/netbsd32/netbsd32_compat_43.c  Fri Apr 23 22:04:37 2010 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_43.c  Fri Apr 23 23:05:40 2010 +0000
@@ -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);
 }
 



Home | Main Index | Thread Index | Old Index