X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=converter%2Fbabeltrace-log.c;h=537a8bf8aebf401c8c889db59a9382eb75ca47f3;hb=9396a9823f091c4ea3752ada3ef65cd05c9120b3;hp=8ea64ab34daa437c9931f2e97cda44bb247d4868;hpb=af60c9882fb67f7b63a37c358062c2e1f121ad53;p=babeltrace.git diff --git a/converter/babeltrace-log.c b/converter/babeltrace-log.c index 8ea64ab3..537a8bf8 100644 --- a/converter/babeltrace-log.c +++ b/converter/babeltrace-log.c @@ -45,7 +45,7 @@ #include #include -#include +#include #include #define USEC_PER_SEC 1000000UL @@ -252,7 +252,7 @@ void trace_text(FILE *input, int output) int ret; memset(&pos, 0, sizeof(pos)); - ret = ctf_init_pos(&pos, output, O_RDWR); + ret = ctf_init_pos(&pos, NULL, output, O_RDWR); if (ret) { fprintf(stderr, "Error in ctf_init_pos\n"); return; @@ -358,7 +358,7 @@ int main(int argc, char **argv) metadata_fd = openat(dir_fd, "metadata", O_RDWR|O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); - if (fd < 0) { + if (metadata_fd < 0) { perror("openat"); goto error_closedatastream; }