Skip to content

Commit 3237b08

Browse files
committed
core: fix wrong prototypes
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 9e0acb7 commit 3237b08

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/otlp-encoder/otlp-encoder.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ int main()
107107
ctr_span_event_set_attribute_string(event, "syscall 3", "write()");
108108

109109
/* add a key/value pair list */
110-
kv = cfl_kvlist_create(1);
110+
kv = cfl_kvlist_create();
111111
cfl_kvlist_insert_string(kv, "language", "c");
112112

113113
ctr_span_set_attribute_kvlist(span_root, "my-list", kv);

examples/simple-c-api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int main()
102102
ctr_span_event_set_attribute_string(event, "syscall 3", "write()");
103103

104104
/* add a key/value pair list */
105-
kv = cfl_kvlist_create(1);
105+
kv = cfl_kvlist_create();
106106
cfl_kvlist_insert_string(kv, "language", "c");
107107

108108
ctr_span_set_attribute_kvlist(span_root, "my-list", kv);

src/ctr_attributes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct ctrace_attributes *ctr_attributes_create()
2929
return NULL;
3030
}
3131

32-
attr->kv = cfl_kvlist_create(128);
32+
attr->kv = cfl_kvlist_create();
3333
if (!attr->kv) {
3434
free(attr);
3535
return NULL;

src/ctr_span.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ struct ctrace_span_event *ctr_span_event_add_ts(struct ctrace_span *span, char *
365365
free(ev);
366366
return NULL;
367367
}
368-
ev->attr = ctr_attributes_create(128);
368+
ev->attr = ctr_attributes_create();
369369
ev->dropped_attr_count = 0;
370370

371371
/* if no timestamp is given, use the current time */

tests/decoding.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ void test_simple_to_msgpack_and_back()
581581
ctr_span_event_set_attribute_string(event, "syscall 3", "write()");
582582

583583
/* add a key/value pair list */
584-
kv = cfl_kvlist_create(1);
584+
kv = cfl_kvlist_create();
585585
TEST_ASSERT(kv != NULL);
586586
cfl_kvlist_insert_string(kv, "language", "c");
587587

0 commit comments

Comments
 (0)