From 6cf7957bc2f4852bf3cdc41f1e5bd13625e2040b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 7 May 2011 10:50:03 -0400 Subject: [PATCH] Use stdout FILE * rather than /dev/stdout for default output Signed-off-by: Mathieu Desnoyers --- formats/ctf-text/ctf-text.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c index aabf6283..17b7bc23 100644 --- a/formats/ctf-text/ctf-text.c +++ b/formats/ctf-text/ctf-text.c @@ -62,8 +62,9 @@ struct trace_descriptor *ctf_text_open_trace(const char *path, int flags) switch (flags & O_ACCMODE) { case O_WRONLY: if (!path) - path = "/dev/stdout"; - fp = fopen(path, "w"); + fp = stdout; + else + fp = fopen(path, "w"); if (!fp) goto error; pos->fp = fp; -- 2.34.1