diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-08-16 16:05:20 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-08-16 16:05:20 +0200 |
commit | e7c14e542d8d858b824b5df4f4e3dc93695e6171 (patch) | |
tree | dc05ca2e7522b2dacf47eadd59c06580690e53f5 /stdio-common | |
parent | bf2927484152e12996af60ea439cf94b66fcd81d (diff) | |
download | glibc-e7c14e542d8d858b824b5df4f4e3dc93695e6171.zip glibc-e7c14e542d8d858b824b5df4f4e3dc93695e6171.tar.gz glibc-e7c14e542d8d858b824b5df4f4e3dc93695e6171.tar.bz2 |
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 <adhemerval.zanella@linaro.org>
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-renameat2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-renameat2.c b/stdio-common/tst-renameat2.c index b65afed..7f4345f 100644 --- a/stdio-common/tst-renameat2.c +++ b/stdio-common/tst-renameat2.c @@ -82,7 +82,7 @@ static void check_size (const char *path, off64_t expected_size) { struct stat64 st; - xstat (path, &st); + xstat64 (path, &st); if (st.st_size != expected_size) FAIL_EXIT1 ("file \"%s\": expected size %lld, actual size %lld", path, (unsigned long long int) expected_size, |