This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] C99 initializers for login/tst-utmp.c
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Art Haas <ahaas at airmail dot net>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 2 Jan 2003 23:01:04 +0100
- Subject: Re: [PATCH] C99 initializers for login/tst-utmp.c
- References: <20030102150613.GA10132@pcdebian.artsapartment.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jan 02, 2003 at 09:06:13AM -0600, Art Haas wrote:
> @@ -77,23 +77,23 @@
> struct utmp entry[] =
> {
> #if _HAVE_UT_TV || defined UTMPX
> -#define UT(a) ut_tv:{tv_sec:(a)}
> +#define UT(a) .ut_tv = { .tv_sec = (a)}
Why not #define UT(a) .ut_tv.tv_sec = (a) instead?
Jakub