This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] Use new style initializers in headers


On Fri, 05 Aug 2011 09:16:46 +0200
Andreas Schwab <schwab@redhat.com> wrote:

> Pavel Roskin <proski@gnu.org> writes:
> 
> > diff --git a/hurd/hurd/fd.h b/hurd/hurd/fd.h
> > index 2473476..61b0147 100644
> > --- a/hurd/hurd/fd.h
> > +++ b/hurd/hurd/fd.h
> > @@ -165,7 +165,7 @@ _hurd_fd_error (int fd, error_t err)
> >    if (signo)
> >      {
> >        const struct hurd_signal_detail detail
> > -	= { code: fd, error: err, exc: 0 };
> > +	= { .code = fd, error: err, exc: 0 };
> 
> What about the other two?

Sorry, my bad.  I guess this can be left out, considering the C++ issues
and the fact that writing three lines of assignments here won't be
pretty.

-- 
Regards,
Pavel Roskin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]