Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys - hit me with your parenthesis stick
details: https://anonhg.NetBSD.org/src/rev/6d5125e1edfd
branches: trunk
changeset: 783528:6d5125e1edfd
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 27 14:41:10 2012 +0000
description:
- hit me with your parenthesis stick
- remove extra void *
diffstat:
sys/sys/mbuf.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r ede936330406 -r 6d5125e1edfd sys/sys/mbuf.h
--- a/sys/sys/mbuf.h Thu Dec 27 14:39:39 2012 +0000
+++ b/sys/sys/mbuf.h Thu Dec 27 14:41:10 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.h,v 1.149 2012/04/29 16:36:54 dsl Exp $ */
+/* $NetBSD: mbuf.h,v 1.150 2012/12/27 14:41:10 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -508,7 +508,7 @@
#define MEXTMALLOC(m, size, how) \
do { \
(m)->m_ext_storage.ext_buf = \
- (void *)malloc((size), mbtypes[(m)->m_type], (how)); \
+ malloc((size), mbtypes[(m)->m_type], (how)); \
if ((m)->m_ext_storage.ext_buf != NULL) { \
MCLINITREFERENCE(m); \
(m)->m_data = (m)->m_ext.ext_buf; \
@@ -559,10 +559,10 @@
m_tag_delete_chain((m), NULL); \
(n) = (m)->m_next; \
if ((m)->m_flags & M_EXT) { \
- m_ext_free(m); \
+ m_ext_free((m)); \
} else { \
- KASSERT(m->m_type != MT_FREE); \
- m->m_type = MT_FREE; \
+ KASSERT((m)->m_type != MT_FREE); \
+ (m)->m_type = MT_FREE; \
pool_cache_put(mb_cache, (m)); \
} \
Home |
Main Index |
Thread Index |
Old Index