aboutsummaryrefslogtreecommitdiff
path: root/posix
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 /posix
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 'posix')
-rw-r--r--posix/tst-spawn7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/tst-spawn7.c b/posix/tst-spawn7.c
index 0b67b35..e4adc6c 100644
--- a/posix/tst-spawn7.c
+++ b/posix/tst-spawn7.c
@@ -114,7 +114,7 @@ do_test_signals (void)
{
/* Same as before, but set SIGUSR1 and SIGUSR2 to a handler different than
SIG_IGN or SIG_DFL. */
- struct sigaction sa = { { 0 } };
+ struct sigaction sa = { 0 };
sa.sa_handler = dummy_sa_handler;
xsigaction (SIGUSR1, &sa, NULL);
xsigaction (SIGUSR2, &sa, NULL);
@@ -123,7 +123,7 @@ do_test_signals (void)
{
/* Check if SIG_IGN is keep as is. */
- struct sigaction sa = { { 0 } };
+ struct sigaction sa = { 0 };
sa.sa_handler = SIG_IGN;
xsigaction (SIGUSR1, &sa, NULL);
xsigaction (SIGUSR2, &sa, NULL);