projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use stdout FILE * rather than /dev/stdout for default output
[babeltrace.git]
/
formats
/
ctf-text
/
ctf-text.c
diff --git
a/formats/ctf-text/ctf-text.c
b/formats/ctf-text/ctf-text.c
index aabf6283295010ceac69bbd7a26301935afb7e4d..17b7bc232f290031e350ad6b8683b907f7d4c75c 100644
(file)
--- 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)
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;
if (!fp)
goto error;
pos->fp = fp;
This page took
0.02373 seconds
and
4
git commands to generate.