Build fix
[babeltrace.git] / formats / ctf / ctf.c
index 156e39db09233c327f3d6d168d3db0c027e28381..c8a3712235ae749215e906f342921a926605f7a8 100644 (file)
@@ -21,7 +21,7 @@
 
 void __attribute__((constructor)) ctf_init(void);
 
 
 void __attribute__((constructor)) ctf_init(void);
 
-static const struct format ctf_format = {
+static struct format ctf_format = {
        .uint_read = ctf_uint_read,
        .int_read = ctf_int_read,
        .uint_write = ctf_uint_write,
        .uint_read = ctf_uint_read,
        .int_read = ctf_int_read,
        .uint_write = ctf_uint_write,
@@ -47,7 +47,7 @@ void ctf_init(void)
 {
        int ret;
 
 {
        int ret;
 
-       ctf_format->name = g_quark_from_static_string("ctf");
+       ctf_format.name = g_quark_from_static_string("ctf");
        ret = bt_register_format(&ctf_format);
        assert(!ret);
 }
        ret = bt_register_format(&ctf_format);
        assert(!ret);
 }
This page took 0.023319 seconds and 4 git commands to generate.