mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-25 07:49:18 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329018
@ -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