summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d50de09)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ie79306f50018d7f5ca0971e6c9a2410378a4ccc7
{
int ret = 0;
struct fs_sink_ctf_field_class *tgt_fc = NULL;
{
int ret = 0;
struct fs_sink_ctf_field_class *tgt_fc = NULL;
- enum fs_sink_ctf_field_class_type tgt_fc_type;
uint64_t i;
int64_t si;
const char *tgt_fc_name = NULL;
uint64_t i;
int64_t si;
const char *tgt_fc_name = NULL;
- tgt_fc_type = tgt_fc->type;
while (i < bt_field_path_get_item_count(tgt_ir_field_path)) {
const bt_field_path_item *fp_item =
while (i < bt_field_path_get_item_count(tgt_ir_field_path)) {
const bt_field_path_item *fp_item =
BT_ASSERT(tgt_fc);
BT_ASSERT(fp_item);
BT_ASSERT(tgt_fc);
BT_ASSERT(fp_item);
+ switch (tgt_fc->type) {
case FS_SINK_CTF_FIELD_CLASS_TYPE_STRUCT:
BT_ASSERT(bt_field_path_item_get_type(fp_item) ==
BT_FIELD_PATH_ITEM_TYPE_INDEX);
case FS_SINK_CTF_FIELD_CLASS_TYPE_STRUCT:
BT_ASSERT(bt_field_path_item_get_type(fp_item) ==
BT_FIELD_PATH_ITEM_TYPE_INDEX);
- BT_ASSERT(tgt_fc_type == FS_SINK_CTF_FIELD_CLASS_TYPE_INT);
+ BT_ASSERT(tgt_fc->type == FS_SINK_CTF_FIELD_CLASS_TYPE_INT);
BT_ASSERT(tgt_fc_name);
/* Find target field class having this name in current context */
BT_ASSERT(tgt_fc_name);
/* Find target field class having this name in current context */