su_data: correct macro expansion.
Protect su_data() users from strange macro expansion. Obtained from: linux libtirpc
This commit is contained in:
parent
f11548e1da
commit
2614eccf45
@ -68,7 +68,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include "rpc_com.h"
|
||||
#include "mt_misc.h"
|
||||
|
||||
#define su_data(xprt) ((struct svc_dg_data *)(xprt->xp_p2))
|
||||
#define su_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2))
|
||||
#define rpc_buffer(xprt) ((xprt)->xp_p1)
|
||||
|
||||
#ifndef MAX
|
||||
|
@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <rpc/svc_dg.h>
|
||||
#include "yp_extern.h"
|
||||
|
||||
#define su_data(xprt) ((struct svc_dg_data *)(xprt->xp_p2))
|
||||
#define su_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2))
|
||||
|
||||
/*
|
||||
* We need to be able to manually set the transaction ID in the
|
||||
|
Loading…
Reference in New Issue
Block a user