Use stdout FILE * rather than /dev/stdout for default output
[babeltrace.git] / formats / ctf-text / ctf-text.c
index 8d84c37f932163462659d32633905f1e590b5d9d..17b7bc232f290031e350ad6b8683b907f7d4c75c 100644 (file)
 struct trace_descriptor *ctf_text_open_trace(const char *path, int flags);
 void ctf_text_close_trace(struct trace_descriptor *descriptor);
 
-static
-rw_dispatch read_dispatch_table[] = {
-       /* All unimplemented */
-};
-
 static
 rw_dispatch write_dispatch_table[] = {
        [ CTF_TYPE_INTEGER ] = ctf_text_integer_write,
@@ -67,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;
This page took 0.025089 seconds and 4 git commands to generate.