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:
Gleb Smirnoff 2020-04-17 06:02:13 +00:00
parent 2ffded5e53
commit e5c3941009
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=360035
2 changed files with 2 additions and 2 deletions

View File

@ -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 *);

View File

@ -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
*/