This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED] Fix test-skeleton C99 designed initialization
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, libc-alpha at sourceware dot org
- Date: Sat, 27 Aug 2016 12:42:13 -0700
- Subject: Re: [COMMITTED] Fix test-skeleton C99 designed initialization
- Authentication-results: sourceware.org; auth=none
- References: <1472245120-18961-1-git-send-email-adhemerval.zanella@linaro.org>
Adhemerval Zanella wrote:
- struct timespec remaining = {};
+ struct timespec remaining = { 0 };
I suggest appending a comma; this style is often used in GNU apps as a cue to
the reader that the remaining zeros are elided. Like this:
struct timespec remaining = { 0, };