From 589484b80899813b0bf505f648295564404f868f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 28 Oct 2016 14:53:12 -0400 Subject: [PATCH] Fix mixing of bt_ctf_scope and bt_ctf_ir_scope enums MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- formats/ctf/ir/resolve.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/formats/ctf/ir/resolve.c b/formats/ctf/ir/resolve.c index 2da1c749..78ddfaaf 100644 --- a/formats/ctf/ir/resolve.c +++ b/formats/ctf/ir/resolve.c @@ -78,7 +78,7 @@ struct resolve_context { struct bt_ctf_field_type *scopes[6]; /* Root scope being visited */ - enum bt_ctf_scope root_scope; + enum bt_ctf_ir_scope root_scope; type_stack *type_stack; struct bt_ctf_field_type *cur_field_type; }; @@ -259,10 +259,10 @@ struct bt_ctf_field_type *get_type_from_ctx(struct resolve_context *ctx, * CTF_NODE_UNKNOWN if the path is found to be relative. */ static -enum bt_ctf_scope get_root_scope_from_absolute_pathstr(const char *pathstr) +enum bt_ctf_ir_scope get_root_scope_from_absolute_pathstr(const char *pathstr) { - enum bt_ctf_scope scope; - enum bt_ctf_scope ret = BT_CTF_SCOPE_UNKNOWN; + enum bt_ctf_ir_scope scope; + enum bt_ctf_ir_scope ret = BT_CTF_SCOPE_UNKNOWN; const size_t prefixes_count = sizeof(absolute_path_prefixes) / sizeof(*absolute_path_prefixes); @@ -1088,7 +1088,7 @@ end: * Resolves the root field type corresponding to the scope `root_scope`. */ static -int resolve_root_type(enum bt_ctf_scope root_scope, struct resolve_context *ctx) +int resolve_root_type(enum bt_ctf_ir_scope root_scope, struct resolve_context *ctx) { int ret; -- 2.34.1