From e7c14e542d8d858b824b5df4f4e3dc93695e6171 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 16 Aug 2024 16:05:20 +0200 Subject: support: Use macros for *stat wrappers Macros will automatically use the correct types, without having to fiddle with internal glibc macros. It's also impossible to get the types wrong due to aliasing because support_check_stat_fd and support_check_stat_path do not depend on the struct stat* types. The changes reveal some inconsistencies in tests. Reviewed-by: Adhemerval Zanella --- stdlib/tst-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/tst-system.c b/stdlib/tst-system.c index 47c742f963..b5b630a41b 100644 --- a/stdlib/tst-system.c +++ b/stdlib/tst-system.c @@ -169,7 +169,7 @@ do_test (void) { struct stat64 st; - xstat (_PATH_BSHELL, &st); + xstat64 (_PATH_BSHELL, &st); mode_t mode = st.st_mode; xchmod (_PATH_BSHELL, mode & ~(S_IXUSR | S_IXGRP | S_IXOTH)); -- cgit v1.2.3