aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/test.c')
-rw-r--r--coreutils/test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index 7c6574334..a914c7490 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -435,7 +435,7 @@ struct test_statics {
435}; 435};
436 436
437/* See test_ptr_hack.c */ 437/* See test_ptr_hack.c */
438extern struct test_statics *const test_ptr_to_statics; 438extern struct test_statics *BB_GLOBAL_CONST test_ptr_to_statics;
439 439
440#define S (*test_ptr_to_statics) 440#define S (*test_ptr_to_statics)
441#define args (S.args ) 441#define args (S.args )
@@ -446,8 +446,7 @@ extern struct test_statics *const test_ptr_to_statics;
446#define leaving (S.leaving ) 446#define leaving (S.leaving )
447 447
448#define INIT_S() do { \ 448#define INIT_S() do { \
449 (*(struct test_statics**)not_const_pp(&test_ptr_to_statics)) = xzalloc(sizeof(S)); \ 449 XZALLOC_CONST_PTR(&test_ptr_to_statics, sizeof(S)); \
450 barrier(); \
451} while (0) 450} while (0)
452#define DEINIT_S() do { \ 451#define DEINIT_S() do { \
453 free(group_array); \ 452 free(group_array); \