diff options
author | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2016-10-31 22:09:12 -0200 |
---|---|---|
committer | Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com> | 2016-11-07 22:09:42 -0200 |
commit | e0c6851980806f2a51b37e3e37fc9a48420a4a83 (patch) | |
tree | f92bf9d475e48293155946e53dcef64a40f94c0c /nptl/tst-stdio1.c | |
parent | d5b38790950533e80d1fc7c79cab4eacef626547 (diff) | |
download | glibc-e0c6851980806f2a51b37e3e37fc9a48420a4a83.zip glibc-e0c6851980806f2a51b37e3e37fc9a48420a4a83.tar.gz glibc-e0c6851980806f2a51b37e3e37fc9a48420a4a83.tar.bz2 |
Write messages to stdout and use write_message instead of write
Replaces calls to write on file descriptor 2 with calls to write_message,
which writes to STDOUT_FILENO (1) and properly deals with the return of
write.
Diffstat (limited to 'nptl/tst-stdio1.c')
-rw-r--r-- | nptl/tst-stdio1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/tst-stdio1.c b/nptl/tst-stdio1.c index 4250e53..7432261 100644 --- a/nptl/tst-stdio1.c +++ b/nptl/tst-stdio1.c @@ -43,7 +43,7 @@ do_test (void) if (pthread_create (&th, NULL, tf, NULL) != 0) { - write (2, "create failed\n", 14); + write_message ("create failed\n"); _exit (1); } |