src.ctf.fs: use "borrow" functions where possible
[babeltrace.git] / plugins / ctf / fs-src / metadata.c
index cdc38debbaf4b2fd27bdaef2d0c546911be08ae8..619e75a02380dc27812cad89cc123d598cab4037 100644 (file)
 #include <stdint.h>
 #include <stdlib.h>
 #include <stdbool.h>
-#include <assert.h>
+#include <babeltrace/assert-internal.h>
 #include <glib.h>
 #include <babeltrace/compat/uuid-internal.h>
 #include <babeltrace/compat/memstream-internal.h>
+#include <babeltrace/babeltrace.h>
 
 #include "fs.h"
 #include "file.h"
@@ -120,7 +121,7 @@ int ctf_fs_metadata_set_trace(struct ctf_fs_trace *ctf_fs_trace,
 
        ctf_fs_trace->metadata->trace = ctf_metadata_decoder_get_trace(
                metadata_decoder);
-       assert(ctf_fs_trace->metadata->trace);
+       BT_ASSERT(ctf_fs_trace->metadata->trace);
 
 end:
        ctf_fs_file_destroy(file);
This page took 0.027748 seconds and 4 git commands to generate.