X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=c8a3712235ae749215e906f342921a926605f7a8;hp=156e39db09233c327f3d6d168d3db0c027e28381;hb=4c8bfb7e0a9cef6e74cefa38ed54bf8cbd424183;hpb=ccd7e1c86f36342b0b06651cc52df86bb663c271 diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 156e39db..c8a37122 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -21,7 +21,7 @@ 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, @@ -47,7 +47,7 @@ void ctf_init(void) { 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); }