X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2Fbabeltrace-log.c;h=537a8bf8aebf401c8c889db59a9382eb75ca47f3;hp=563a90f57f1df018d5f75cd18e70a633aea8811b;hb=9396a9823f091c4ea3752ada3ef65cd05c9120b3;hpb=ca334c7230d120ffe211efbfd6efe467b5d4d794 diff --git a/converter/babeltrace-log.c b/converter/babeltrace-log.c index 563a90f5..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 @@ -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; }