aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-15 18:49:43 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-15 18:49:52 +0800
commit20f8c5df56f68a783ceab59d2d77184e32a28ff4 (patch)
treeae20b806518d09708438f8e72dcb39c4884a4151 /sysdeps/unix
parentd4175a62c286a4c5efcb869f5385d16969abdc2a (diff)
downloadglibc-20f8c5df56f68a783ceab59d2d77184e32a28ff4.zip
glibc-20f8c5df56f68a783ceab59d2d77184e32a28ff4.tar.gz
glibc-20f8c5df56f68a783ceab59d2d77184e32a28ff4.tar.bz2
Revert "Add braces in initializers for GCC 4.9 or older"
This reverts commit 8aa2a9e0339215012354f3c4a262edda838134e8. as not all targets need braces.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/tst-getcwd-smallbuff.c4
-rw-r--r--sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-getcwd-smallbuff.c b/sysdeps/unix/sysv/linux/tst-getcwd-smallbuff.c
index a024783..55362f6 100644
--- a/sysdeps/unix/sysv/linux/tst-getcwd-smallbuff.c
+++ b/sysdeps/unix/sysv/linux/tst-getcwd-smallbuff.c
@@ -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;
diff --git a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
index 2d8739b..e0fb28d 100644
--- a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
+++ b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c
@@ -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. */