Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dev/dtrace/mips sizeof(*var) instead of ...



details:   https://anonhg.NetBSD.org/src/rev/a7d79fed993e
branches:  trunk
changeset: 961016:a7d79fed993e
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 06 12:10:21 2021 +0000

description:
sizeof(*var) instead of sizeof(type)

diffstat:

 external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2e6451b674f8 -r a7d79fed993e external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c
--- a/external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c Tue Apr 06 08:40:17 2021 +0000
+++ b/external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c Tue Apr 06 12:10:21 2021 +0000
@@ -88,7 +88,7 @@
 {
        dtrace_invop_hdlr_t *hdlr;
 
-       hdlr = kmem_alloc(sizeof (dtrace_invop_hdlr_t), KM_SLEEP);
+       hdlr = kmem_alloc(sizeof(*hdlr), KM_SLEEP);
        hdlr->dtih_func = func;
        hdlr->dtih_next = dtrace_invop_hdlr;
        dtrace_invop_hdlr = hdlr;
@@ -121,7 +121,7 @@
                prev->dtih_next = hdlr->dtih_next;
        }
 
-       kmem_free(hdlr, sizeof (dtrace_invop_hdlr_t));
+       kmem_free(hdlr, sizeof(*hdlr));
 }
 
 /*ARGSUSED*/



Home | Main Index | Thread Index | Old Index