Move M_RPC malloc type into XDR. Both RPC and XDR libraries use
this type, but since RPC depends on XDR (not vice versa) we need it defined in XDR to make the module loadable without RPC. Reviewed by: rmacklem Differential Revision: https://reviews.freebsd.org/D24408
This commit is contained in:
parent
2ffded5e53
commit
e5c3941009
@ -61,8 +61,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <rpc/clnt.h>
|
||||
#include <rpc/rpc_msg.h>
|
||||
|
||||
MALLOC_DEFINE(M_RPC, "rpc", "Remote Procedure Call");
|
||||
|
||||
#define assert(exp) KASSERT(exp, ("bad arguments"))
|
||||
|
||||
static enum clnt_stat accepted(enum accept_stat, struct rpc_err *);
|
||||
|
@ -65,6 +65,8 @@ typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */
|
||||
#define XDR_FALSE ((long) 0)
|
||||
#define XDR_TRUE ((long) 1)
|
||||
|
||||
MALLOC_DEFINE(M_RPC, "rpc", "Remote Procedure Call");
|
||||
|
||||
/*
|
||||
* for unit alignment
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user