git: 2b61bda2c75f - stable/12 - Use C11 anonymous unions.
Dmitry Chagin
dchagin at FreeBSD.org
Sun Mar 21 10:33:07 UTC 2021
The branch stable/12 has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=2b61bda2c75f30f6eadd18fb891fd885e4c8d19d
commit 2b61bda2c75f30f6eadd18fb891fd885e4c8d19d
Author: Dmitry Chagin <dchagin at FreeBSD.org>
AuthorDate: 2019-06-10 05:28:03 +0000
Commit: Dmitry Chagin <dchagin at 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]
More information about the dev-commits-src-all
mailing list