Use C11 anonymous unions.

PR:		215202
Reported by:	glebius
MFC after:	2 weeks
This commit is contained in:
Dmitry Chagin 2019-06-10 05:28:03 +00:00
parent fdb916d53e
commit a5ec4a9dba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348847

View File

@ -89,12 +89,11 @@ struct xucred {
gid_t cr_groups[XU_NGROUPS]; /* groups */
union {
void *_cr_unused1; /* compatibility with old ucred */
pid_t _pid;
} _cr;
pid_t cr_pid;
};
};
#define XUCRED_VERSION 0
#define cr_pid _cr._pid
/* This can be used for both ucred and xucred structures. */
#define cr_gid cr_groups[0]