[PATCH] C99 initializers for login/tst-utmp.c

Roland McGrath roland@redhat.com
Thu Jan 2 22:08:00 GMT 2003


> 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?

The struct initializer also clears tv_usec.



More information about the Libc-alpha mailing list