summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-06-19 18:25:34 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-06-19 18:25:34 +0200
commit2e2bfa31dc97159b7630c3c2913a49147be818d2 (patch)
tree087c09fc5b8cf57e86d619df4eb5bb528e1ffcd4 /bindings
parent7bf0d9c6f807ffae6d9871c606afeccb9b478d3d (diff)
Fix warnings due to json-c evolution
The library json-c now returns size_t instead of int when querying length of arrays. Change-Id: Id52bb8e77da12cb01e61e1a7c7f4ae2fcbe4634e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/intrinsics/afb-dbus-binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/intrinsics/afb-dbus-binding.c b/bindings/intrinsics/afb-dbus-binding.c
index 51474f6b..8f8a8866 100644
--- a/bindings/intrinsics/afb-dbus-binding.c
+++ b/bindings/intrinsics/afb-dbus-binding.c
@@ -366,7 +366,7 @@ static int packsingle(struct sd_bus_message *msg, const char *signature, struct
goto error;
if (json_object_is_type(item, json_type_array)) {
/* Is an array! */
- count = json_object_array_length(item);
+ count = (int)json_object_array_length(item);
index = 0;
while(index < count) {
rc = packsingle(msg, subsig, json_object_array_get_idx(item, index++));
@@ -461,7 +461,7 @@ static int packlist(struct sd_bus_message *msg, const char *signature, struct js
}
/* iterate over elements */
- count = json_object_array_length(list);
+ count = (int)json_object_array_length(list);
index = 0;
for (;;) {
/* check state */