Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitreview file for Magic Marlin branch
[src/app-framework-binder.git]
/
bindings
/
intrinsics
/
afb-dbus-binding.c
diff --git
a/bindings/intrinsics/afb-dbus-binding.c
b/bindings/intrinsics/afb-dbus-binding.c
index
51474f6
..
04bbad0
100644
(file)
--- a/
bindings/intrinsics/afb-dbus-binding.c
+++ b/
bindings/intrinsics/afb-dbus-binding.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 201
6, 2017, 2018
"IoT.bzh"
+ * Copyright (C) 201
5-2020
"IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-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! */
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++));
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 */
}
/* iterate over elements */
- count = json_object_array_length(list);
+ count =
(int)
json_object_array_length(list);
index = 0;
for (;;) {
/* check state */
index = 0;
for (;;) {
/* check state */