Skip to content

Commit

Permalink
core: fix wrong prototypes
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Dec 20, 2023
1 parent 9e0acb7 commit 3237b08
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/otlp-encoder/otlp-encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main()
ctr_span_event_set_attribute_string(event, "syscall 3", "write()");

/* add a key/value pair list */
kv = cfl_kvlist_create(1);
kv = cfl_kvlist_create();
cfl_kvlist_insert_string(kv, "language", "c");

ctr_span_set_attribute_kvlist(span_root, "my-list", kv);
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-c-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ int main()
ctr_span_event_set_attribute_string(event, "syscall 3", "write()");

/* add a key/value pair list */
kv = cfl_kvlist_create(1);
kv = cfl_kvlist_create();
cfl_kvlist_insert_string(kv, "language", "c");

ctr_span_set_attribute_kvlist(span_root, "my-list", kv);
Expand Down
2 changes: 1 addition & 1 deletion src/ctr_attributes.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct ctrace_attributes *ctr_attributes_create()
return NULL;
}

attr->kv = cfl_kvlist_create(128);
attr->kv = cfl_kvlist_create();
if (!attr->kv) {
free(attr);
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/ctr_span.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ struct ctrace_span_event *ctr_span_event_add_ts(struct ctrace_span *span, char *
free(ev);
return NULL;
}
ev->attr = ctr_attributes_create(128);
ev->attr = ctr_attributes_create();
ev->dropped_attr_count = 0;

/* if no timestamp is given, use the current time */
Expand Down
2 changes: 1 addition & 1 deletion tests/decoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ void test_simple_to_msgpack_and_back()
ctr_span_event_set_attribute_string(event, "syscall 3", "write()");

/* add a key/value pair list */
kv = cfl_kvlist_create(1);
kv = cfl_kvlist_create();
TEST_ASSERT(kv != NULL);
cfl_kvlist_insert_string(kv, "language", "c");

Expand Down

0 comments on commit 3237b08

Please sign in to comment.