aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac_bsdextended
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2008-10-23 15:53:51 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2008-10-23 15:53:51 +0000
commit1ede983cc905643549d8cae56a9d0e28fc68375f (patch)
tree21e792ce590e1bcf9b343890605a1b4c6a9016b3 /sys/security/mac_bsdextended
parent994f9863852fe65833509090659d9f5aef7194d3 (diff)
downloadsrc-1ede983cc905643549d8cae56a9d0e28fc68375f.tar.gz
src-1ede983cc905643549d8cae56a9d0e28fc68375f.zip
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
MFC after: 3 months
Notes
Notes: svn path=/head/; revision=184205
Diffstat (limited to 'sys/security/mac_bsdextended')
-rw-r--r--sys/security/mac_bsdextended/mac_bsdextended.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/security/mac_bsdextended/mac_bsdextended.c b/sys/security/mac_bsdextended/mac_bsdextended.c
index 93befaee7552..e9d7901b4492 100644
--- a/sys/security/mac_bsdextended/mac_bsdextended.c
+++ b/sys/security/mac_bsdextended/mac_bsdextended.c
@@ -152,8 +152,7 @@ sysctl_rule(SYSCTL_HANDLER_ARGS)
error = SYSCTL_IN(req, &temprule, sizeof(temprule));
if (error)
return (error);
- MALLOC(ruleptr, struct mac_bsdextended_rule *,
- sizeof(*ruleptr), M_MACBSDEXTENDED, M_WAITOK | M_ZERO);
+ ruleptr = malloc( sizeof(*ruleptr), M_MACBSDEXTENDED, M_WAITOK | M_ZERO);
}
mtx_lock(&ugidfw_mtx);
@@ -194,7 +193,7 @@ sysctl_rule(SYSCTL_HANDLER_ARGS)
out:
mtx_unlock(&ugidfw_mtx);
if (ruleptr != NULL)
- FREE(ruleptr, M_MACBSDEXTENDED);
+ free(ruleptr, M_MACBSDEXTENDED);
if (req->oldptr && error == 0)
error = SYSCTL_OUT(req, &temprule, sizeof(temprule));
return (error);