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: [COMMITTED] Fix test-skeleton C99 designed initialization


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, };


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