Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type errors in cprofiles #9598

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/cprofiles/src/cprof_encode_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ static int encode_cprof_resource_profiles(
struct cprof_resource_profiles *instance) {
int result;
struct cfl_list *iterator;
struct cprof_scope_profile *scope_profile;
struct cprof_scope_profiles *scope_profiles;

result = encode_string(context,
CFL_TRUE,
Expand Down Expand Up @@ -1958,11 +1958,11 @@ static int encode_cprof_resource_profiles(

cfl_list_foreach(iterator,
&instance->scope_profiles) {
scope_profile = cfl_list_entry(
scope_profiles = cfl_list_entry(
iterator,
struct cprof_scope_profiles, _head);

result = encode_cprof_scope_profiles(context, scope_profile);
result = encode_cprof_scope_profiles(context, scope_profiles);

if (result != CPROF_ENCODE_TEXT_SUCCESS) {
return result;
Expand Down
4 changes: 2 additions & 2 deletions lib/cprofiles/src/cprof_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void cprof_profile_destroy(struct cprof_profile *instance)
struct cfl_list *iterator_backup;
struct cprof_attribute_unit *attribute_unit;
struct cprof_value_type *value_type;
struct cprof_mapping *location;
struct cprof_location *location;
struct cprof_function *function;
struct cfl_list *iterator;
struct cprof_mapping *mapping;
Expand Down Expand Up @@ -307,4 +307,4 @@ int cprof_profile_add_comment(struct cprof_profile *profile, int64_t comment)
profile->comments_count++;

return 0;
}
}
Loading