1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

su_data: correct macro expansion.

Protect su_data() users from strange macro expansion.

Obtained from:	linux libtirpc
This commit is contained in:
Pedro F. Giffuni 2018-02-08 14:53:34 +00:00
parent f11548e1da
commit 2614eccf45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329018
2 changed files with 2 additions and 2 deletions

View File

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

View File

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