mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
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>
This commit is contained in:
committed by
Siddhesh Poyarekar
parent
a8c8889978
commit
026a84a54d
@@ -18,6 +18,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <support/xunistd.h>
|
||||
|
||||
static void do_prepare (void);
|
||||
#define PREPARE(argc, argv) do_prepare ()
|
||||
static int do_test (void);
|
||||
@@ -36,7 +38,7 @@ do_prepare (void)
|
||||
printf ("cannot create temporary file: %m\n");
|
||||
exit (1);
|
||||
}
|
||||
write (fd, pattern, sizeof (pattern) - 1);
|
||||
xwrite (fd, pattern, sizeof (pattern) - 1);
|
||||
close (fd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user