* sequence field class.
*/
static
-int set_field_refs(struct fs_sink_ctf_field_class *fc, const char *fc_name,
- struct fs_sink_ctf_field_class *parent_fc)
+int set_field_refs(struct fs_sink_ctf_field_class * const fc,
+ const char *fc_name, struct fs_sink_ctf_field_class *parent_fc)
{
int ret = 0;
enum fs_sink_ctf_field_class_type fc_type;
uint64_t i;
uint64_t len;
struct fs_sink_ctf_field_class_struct *struct_fc;
- struct fs_sink_ctf_field_class_variant *var_fc;
+ struct fs_sink_ctf_field_class_variant *var_fc = NULL;
struct fs_sink_ctf_named_field_class *named_fc;
if (fc_type == FS_SINK_CTF_FIELD_CLASS_TYPE_STRUCT) {
}
switch (bt_value_get_type(val)) {
- case BT_VALUE_TYPE_INTEGER:
+ case BT_VALUE_TYPE_SIGNED_INTEGER:
case BT_VALUE_TYPE_STRING:
break;
default: