Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/common sizeof type -> sizeof *var



details:   https://anonhg.NetBSD.org/src/rev/cc9d2a10a7f4
branches:  trunk
changeset: 768515:cc9d2a10a7f4
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 18 02:21:02 2011 +0000

description:
sizeof type -> sizeof *var

diffstat:

 sys/compat/linux/common/linux_exec.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 8afb78faf640 -r cc9d2a10a7f4 sys/compat/linux/common/linux_exec.c
--- a/sys/compat/linux/common/linux_exec.c      Thu Aug 18 02:19:20 2011 +0000
+++ b/sys/compat/linux/common/linux_exec.c      Thu Aug 18 02:21:02 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_exec.c,v 1.114 2010/07/07 01:30:35 chs Exp $     */
+/*     $NetBSD: linux_exec.c,v 1.115 2011/08/18 02:21:02 christos Exp $        */
 
 /*-
  * Copyright (c) 1994, 1995, 1998, 2000, 2007, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.114 2010/07/07 01:30:35 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec.c,v 1.115 2011/08/18 02:21:02 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -165,7 +165,7 @@
 {
        struct linux_emuldata *led2;
 
-       led2 = kmem_zalloc(sizeof(struct linux_emuldata), KM_SLEEP);
+       led2 = kmem_zalloc(sizeof(*led2), KM_SLEEP);
        l2->l_emuldata = led2;
 }
 
@@ -202,5 +202,5 @@
 
        led = l->l_emuldata;
        l->l_emuldata = NULL;
-       kmem_free(led, sizeof (struct linux_emuldata));
+       kmem_free(led, sizeof(*led));
 }



Home | Main Index | Thread Index | Old Index