From 03700ad37c4c55e61cd29d1d85640996438a79d5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 17 Feb 2018 08:33:01 +0100 Subject: [PATCH] test/DumpDecoderClient: use STDOUT_FILENO --- test/DumpDecoderClient.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/DumpDecoderClient.cxx b/test/DumpDecoderClient.cxx index 680761bb8..95dd526ef 100644 --- a/test/DumpDecoderClient.cxx +++ b/test/DumpDecoderClient.cxx @@ -101,7 +101,7 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is, fprintf(stderr, "%u kbit/s\n", kbit_rate); } - gcc_unused ssize_t nbytes = write(1, data, datalen); + gcc_unused ssize_t nbytes = write(STDOUT_FILENO, data, datalen); return DecoderCommand::NONE; }