summaryrefslogtreecommitdiffstats
path: root/sys/rpc/rpcclnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/rpc/rpcclnt.c')
-rw-r--r--sys/rpc/rpcclnt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/rpc/rpcclnt.c b/sys/rpc/rpcclnt.c
index 54cde66..1c90ff6 100644
--- a/sys/rpc/rpcclnt.c
+++ b/sys/rpc/rpcclnt.c
@@ -1029,7 +1029,7 @@ rpcclnt_reply(myrep, td)
m_freem(nam);
#else
if (nam)
- FREE(nam, M_SONAME);
+ free(nam, M_SONAME);
#endif
/*
@@ -1154,7 +1154,7 @@ rpcclnt_request(rpc, mrest, procnum, td, cred, reply)
#ifdef __OpenBSD__
task = pool_get(&rpctask_pool, PR_WAITOK);
#else
- MALLOC(task, struct rpctask *, sizeof(struct rpctask), M_RPCCLNT, (M_WAITOK | M_ZERO));
+ task = malloc(sizeof(struct rpctask), M_RPCCLNT, (M_WAITOK | M_ZERO));
#endif
task->r_rpcclnt = rpc;
@@ -1172,7 +1172,7 @@ rpcclnt_request(rpc, mrest, procnum, td, cred, reply)
#ifdef __OpenBSD__
pool_put(&rpctask_pool, task);
#else
- FREE(task, M_RPCCLNT);
+ free(task, M_RPCCLNT);
#endif
error = EPROTONOSUPPORT;
goto rpcmout;
@@ -1294,7 +1294,7 @@ rpcclnt_request(rpc, mrest, procnum, td, cred, reply)
#ifdef __OpenBSD__
pool_put(&rpctask_pool, task);
#else
- FREE(task, M_RPCCLNT);
+ free(task, M_RPCCLNT);
#endif
if (error)
@@ -2025,7 +2025,7 @@ rpcclnt_softterm(struct rpctask * task)
void
rpcclnt_create(struct rpcclnt ** rpc)
{
- MALLOC(*rpc, struct rpcclnt *, sizeof(struct rpcclnt), M_RPCCLNT, M_WAITOK | M_ZERO);
+ *rpc = malloc(sizeof(struct rpcclnt), M_RPCCLNT, M_WAITOK | M_ZERO);
}
/* called by rpcclnt_put() */
@@ -2033,7 +2033,7 @@ void
rpcclnt_destroy(struct rpcclnt * rpc)
{
if (rpc != NULL) {
- FREE(rpc, M_RPCCLNT);
+ free(rpc, M_RPCCLNT);
} else {
RPCDEBUG("attempting to free a NULL rpcclnt (not dereferenced)");
}
OpenPOWER on IntegriCloud