diff options
author | des <des@FreeBSD.org> | 2008-10-23 15:53:51 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-10-23 15:53:51 +0000 |
commit | 66f807ed8b3634dc73d9f7526c484e43f094c0ee (patch) | |
tree | 21e792ce590e1bcf9b343890605a1b4c6a9016b3 /sys/netgraph/ng_message.h | |
parent | a779c60ce0a41cd14710a8a12cfa22955108b27a (diff) | |
download | FreeBSD-src-66f807ed8b3634dc73d9f7526c484e43f094c0ee.zip FreeBSD-src-66f807ed8b3634dc73d9f7526c484e43f094c0ee.tar.gz |
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
MFC after: 3 months
Diffstat (limited to 'sys/netgraph/ng_message.h')
-rw-r--r-- | sys/netgraph/ng_message.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netgraph/ng_message.h b/sys/netgraph/ng_message.h index 7d0f4d8..819397a 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; \ |