Date: Sun, 21 Mar 2021 10:33:07 GMT From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2b61bda2c75f - stable/12 - Use C11 anonymous unions. Message-ID: <202103211033.12LAX7ZV016810@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=2b61bda2c75f30f6eadd18fb891fd885e4c8d19d commit 2b61bda2c75f30f6eadd18fb891fd885e4c8d19d Author: Dmitry Chagin <dchagin@FreeBSD.org> AuthorDate: 2019-06-10 05:28:03 +0000 Commit: Dmitry Chagin <dchagin@FreeBSD.org> CommitDate: 2021-03-21 10:32:03 +0000 Use C11 anonymous unions. PR: 215202 Reported by: glebius (cherry picked from commit a5ec4a9dba5629dfe146ae9534e91e5e957747eb) --- sys/sys/ucred.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index f7079ad92c1c..9713623de6cc 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -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]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103211033.12LAX7ZV016810>