diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-01 12:40:05 -0400 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-01 12:40:05 -0400 |
commit | 026a84a54d3b6c23b999b793e2a6f8ecd211e3b8 (patch) | |
tree | a2d31c6c98b1de645aee08e9f8d907ec1961bd7d /io/tst-faccessat.c | |
parent | a8c888997845c5192e446176374c2e13bb3e2195 (diff) | |
download | glibc-026a84a54d3b6c23b999b793e2a6f8ecd211e3b8.zip glibc-026a84a54d3b6c23b999b793e2a6f8ecd211e3b8.tar.gz glibc-026a84a54d3b6c23b999b793e2a6f8ecd211e3b8.tar.bz2 |
tests: replace write by xwrite
Using write without cheks leads to warn unused result when __wur is
enabled.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'io/tst-faccessat.c')
-rw-r--r-- | io/tst-faccessat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io/tst-faccessat.c b/io/tst-faccessat.c index 7bdeed0..b90954e 100644 --- a/io/tst-faccessat.c +++ b/io/tst-faccessat.c @@ -8,6 +8,7 @@ #include <unistd.h> #include <sys/stat.h> +#include <support/xunistd.h> static void prepare (void); #define PREPARE(argc, argv) prepare () @@ -96,7 +97,7 @@ do_test (void) puts ("file creation failed"); return 1; } - write (fd, "hello", 5); + xwrite (fd, "hello", 5); puts ("file created"); /* Before closing the file, try using this file descriptor to open |