aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorFrédéric Bérat <fberat@redhat.com>2023-06-02 17:28:11 +0200
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2023-06-06 08:23:53 -0400
commitf6a532fbd0f430dc4ded254d713d89fcbafc1b7e (patch)
tree877e228c5be9426c828c3bd79ad8c5d9515b420f /misc
parent8c4f69d711481a18c70cb9a6c0a5367604894320 (diff)
downloadglibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.zip
glibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.tar.gz
glibc-f6a532fbd0f430dc4ded254d713d89fcbafc1b7e.tar.bz2
tests: Replace various function calls with their x variant
With fortification enabled, few function calls return result need to be checked, has they get the __wur macro enabled. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/tst-error1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/tst-error1.c b/misc/tst-error1.c
index 9c4a62f..75d4edf 100644
--- a/misc/tst-error1.c
+++ b/misc/tst-error1.c
@@ -5,11 +5,13 @@
#include <wchar.h>
#include <libc-diag.h>
+#include <support/xstdio.h>
+
static int
do_test (int argc, char *argv[])
{
mtrace ();
- (void) freopen (argc == 1 ? "/dev/stdout" : argv[1], "a", stderr);
+ xfreopen (argc == 1 ? "/dev/stdout" : argv[1], "a", stderr);
/* Orient the stream. */
fwprintf (stderr, L"hello world\n");
char buf[20000];