1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Revert "Add braces in initializers for GCC 4.9 or older"

This reverts commit 8aa2a9e033.

as not all targets need braces.
This commit is contained in:
H.J. Lu
2024-12-15 18:49:43 +08:00
parent d4175a62c2
commit 20f8c5df56
9 changed files with 18 additions and 21 deletions

View File

@ -59,7 +59,7 @@ send_fd (const int sock, const int fd)
{
struct cmsghdr hdr;
char buf[CMSG_SPACE (sizeof (int))];
} cmsgbuf = {{0}};
} cmsgbuf = {0};
struct cmsghdr *cmsg;
struct iovec vec;
char ch = 'A';
@ -92,7 +92,7 @@ recv_fd (const int sock)
{
struct cmsghdr hdr;
char buf[CMSG_SPACE(sizeof(int))];
} cmsgbuf = {{0}};
} cmsgbuf = {0};
struct cmsghdr *cmsg;
struct iovec vec;
ssize_t n;

View File

@ -76,7 +76,7 @@ do_recvmsg_ancillary (bool use_multi_call, struct mmsghdr *mmhdr,
static void
do_test_large_buffer (bool mc)
{
struct mmsghdr mmhdr = { { 0 } };
struct mmsghdr mmhdr = { 0 };
/* It should be large enough for either timeval/timespec and the
64 time type as well. */
@ -147,7 +147,7 @@ do_test_large_buffer (bool mc)
static void
do_test_small_buffer (bool mc)
{
struct mmsghdr mmhdr = { { 0 } };
struct mmsghdr mmhdr = { 0 };
/* Enable 32 bit timeval precision and check if no 64 bit timeval stamp
is created. */