about summary refs log tree commit diff
path: root/localedata
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-08-16 16:05:20 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-08-16 16:05:20 +0200
commite7c14e542d8d858b824b5df4f4e3dc93695e6171 (patch)
treedc05ca2e7522b2dacf47eadd59c06580690e53f5 /localedata
parentbf2927484152e12996af60ea439cf94b66fcd81d (diff)
downloadglibc-e7c14e542d8d858b824b5df4f4e3dc93695e6171.tar.gz
glibc-e7c14e542d8d858b824b5df4f4e3dc93695e6171.tar.xz
glibc-e7c14e542d8d858b824b5df4f4e3dc93695e6171.zip
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 'localedata')
-rw-r--r--localedata/tst-localedef-hardlinks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/localedata/tst-localedef-hardlinks.c b/localedata/tst-localedef-hardlinks.c
index e88215a150..23927b462f 100644
--- a/localedata/tst-localedef-hardlinks.c
+++ b/localedata/tst-localedef-hardlinks.c
@@ -62,7 +62,7 @@ check_link (struct test_data step)
   char *output;
 
   output = xasprintf ("%s/%s", support_complocaledir_prefix, step.output);
-  xstat (output, &locale);
+  xstat64 (output, &locale);
   free (output);
   TEST_COMPARE (locale.st_nlink, step.st_nlink);
 }