From: Mathieu Desnoyers Date: Sat, 7 May 2011 14:50:03 +0000 (-0400) Subject: Use stdout FILE * rather than /dev/stdout for default output X-Git-Tag: v0.1~82 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=6cf7957bc2f4852bf3cdc41f1e5bd13625e2040b Use stdout FILE * rather than /dev/stdout for default output Signed-off-by: Mathieu Desnoyers --- 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;