[PATCH 1/2] Use new style initializers in headers
Pavel Roskin
proski@gnu.org
Sat Aug 6 14:06:00 GMT 2011
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
More information about the Libc-alpha
mailing list