gcc warning fix: -Wextra
[babeltrace.git] / lib / context.c
index 00409726e0d6d38714387b8af44e4354b87da1e8..dc7736689170e10da3ba1164f543c79e334fdbe3 100644 (file)
@@ -73,7 +73,7 @@ int bt_context_add_trace(struct bt_context *ctx, const char *path,
                FILE *metadata)
 {
        struct bt_trace_descriptor *td;
-       struct format *fmt;
+       struct bt_format *fmt;
        struct bt_trace_handle *handle;
        int ret, closeret;
 
@@ -107,7 +107,7 @@ int bt_context_add_trace(struct bt_context *ctx, const char *path,
 
        /* Create an handle for the trace */
        handle = bt_trace_handle_create(ctx);
-       if (handle < 0) {
+       if (!handle) {
                fprintf(stderr, "[error] [Context] Creating trace handle %s .\n\n",
                                path);
                ret = -1;
This page took 0.023673 seconds and 4 git commands to generate.