Standardize *get_*_count() functions
[babeltrace.git] / lib / ctf-ir / event-class.c
index 0cef19353f1f972cc7fbb86d5f43c6bb93e12a16..c50e39bfa1b8a121bc8e89b2bd1944c14efc2af4 100644 (file)
@@ -262,10 +262,10 @@ end:
        return ret;
 }
 
-int bt_ctf_event_class_get_attribute_count(
+int64_t bt_ctf_event_class_get_attribute_count(
                struct bt_ctf_event_class *event_class)
 {
-       int ret = 0;
+       int64_t ret = 0;
 
        if (!event_class) {
                ret = -1;
@@ -400,10 +400,10 @@ end:
        return ret;
 }
 
-int bt_ctf_event_class_get_field_count(
+int64_t bt_ctf_event_class_get_field_count(
                struct bt_ctf_event_class *event_class)
 {
-       int ret;
+       int64_t ret;
 
        if (!event_class) {
                ret = -1;
@@ -577,8 +577,8 @@ BT_HIDDEN
 int bt_ctf_event_class_serialize(struct bt_ctf_event_class *event_class,
                struct metadata_context *context)
 {
-       int i;
-       int count;
+       int64_t i;
+       int64_t count;
        int ret = 0;
        struct bt_value *attr_value = NULL;
 
This page took 0.034373 seconds and 4 git commands to generate.