aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/ng_message.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netgraph/ng_message.h')
-rw-r--r--sys/netgraph/ng_message.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h
index 7d0f4d8e59fa..819397ad4271 100644
--- a/sys/netgraph/ng_message.h
+++ b/sys/netgraph/ng_message.h
@@ -388,7 +388,7 @@ struct flow_manager {
*/
#define NG_MKMESSAGE(msg, cookie, cmdid, len, how) \
do { \
- MALLOC((msg), struct ng_mesg *, sizeof(struct ng_mesg) \
+ (msg) = malloc(sizeof(struct ng_mesg) \
+ (len), M_NETGRAPH_MSG, (how) | M_ZERO); \
if ((msg) == NULL) \
break; \
@@ -406,7 +406,7 @@ struct flow_manager {
*/
#define NG_MKRESPONSE(rsp, msg, len, how) \
do { \
- MALLOC((rsp), struct ng_mesg *, sizeof(struct ng_mesg) \
+ (rsp) = malloc(sizeof(struct ng_mesg) \
+ (len), M_NETGRAPH_MSG, (how) | M_ZERO); \
if ((rsp) == NULL) \
break; \
@@ -425,8 +425,8 @@ struct flow_manager {
*/
#define NG_COPYMESSAGE(copy, msg, how) \
do { \
- MALLOC((copy), struct ng_mesg *, sizeof(struct ng_mesg) + \
- (msg)->header.arglen, M_NETGRAPH_MSG, (how) | M_ZERO); \
+ (copy) = malloc(sizeof(struct ng_mesg) \
+ + (msg)->header.arglen, M_NETGRAPH_MSG, (how) | M_ZERO); \
if ((copy) == NULL) \
break; \
(copy)->header.version = NG_VERSION; \