diff options
Diffstat (limited to 'trace-output.c')
-rw-r--r-- | trace-output.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/trace-output.c b/trace-output.c index c34e8b2..14fe0f1 100644 --- a/trace-output.c +++ b/trace-output.c | |||
@@ -860,16 +860,14 @@ struct tracecmd_output *tracecmd_create_file(const char *output_file, | |||
860 | return handle; | 860 | return handle; |
861 | } | 861 | } |
862 | 862 | ||
863 | struct tracecmd_output * | 863 | struct tracecmd_output *tracecmd_create_init_fd(int fd) |
864 | tracecmd_create_init_fd(int fd) | ||
865 | { | 864 | { |
866 | struct tracecmd_output *handle; | 865 | return create_file_fd(fd, NULL); |
867 | 866 | } | |
868 | handle = create_file_fd(fd, NULL); | ||
869 | if (!handle) | ||
870 | return NULL; | ||
871 | 867 | ||
872 | return handle; | 868 | struct tracecmd_output *tracecmd_create_init_file(const char *output_file) |
869 | { | ||
870 | return create_file(output_file, NULL); | ||
873 | } | 871 | } |
874 | 872 | ||
875 | /** | 873 | /** |