Date: Mon, 10 Jun 2019 11:09:09 +0200 From: =?UTF-8?B?VMSzbA==?= Coosemans <tijl@FreeBSD.org> To: Dmitry Chagin <dchagin@FreeBSD.org>, glebius@FreeBSD.org Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r348847 - head/sys/sys Message-ID: <20190610110909.3e6fbc13@kalimero.tijl.coosemans.org> In-Reply-To: <201906100528.x5A5S4gm072561@repo.freebsd.org> References: <201906100528.x5A5S4gm072561@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Jun 2019 05:28:04 +0000 (UTC) Dmitry Chagin <dchagin@FreeBSD.org> wrote: > Author: dchagin > Date: Mon Jun 10 05:28:03 2019 > New Revision: 348847 > URL: https://svnweb.freebsd.org/changeset/base/348847 > > Log: > Use C11 anonymous unions. > > PR: 215202 > Reported by: glebius > MFC after: 2 weeks > > Modified: > head/sys/sys/ucred.h > > Modified: head/sys/sys/ucred.h > ============================================================================== > --- head/sys/sys/ucred.h Mon Jun 10 05:09:34 2019 (r348846) > +++ head/sys/sys/ucred.h Mon Jun 10 05:28:03 2019 (r348847) > @@ -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] Isn't this a userland header that should work with non-C11 compilers?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190610110909.3e6fbc13>