summaryrefslogtreecommitdiffstats
path: root/src/af-steering-wheel-binding.c
diff options
context:
space:
mode:
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-20 11:53:25 +0100
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>2019-11-20 11:53:25 +0100
commit54d83caf8f92c6a68cf4e7fc067c31a5cc6880f1 (patch)
tree685b272a4a0a7d6eb346e0a53fe604a5abe38242 /src/af-steering-wheel-binding.c
parent32837eddf0644aef8c71a208d87aaa8140eeafaa (diff)
Bug-AGL: SPEC-2422 Change-Id: I184490cf84b9423b1194c9b9c309dd8c97a07a76 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
Diffstat (limited to 'src/af-steering-wheel-binding.c')
-rw-r--r--src/af-steering-wheel-binding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/af-steering-wheel-binding.c b/src/af-steering-wheel-binding.c
index 8b75175..5a792af 100644
--- a/src/af-steering-wheel-binding.c
+++ b/src/af-steering-wheel-binding.c
@@ -318,10 +318,10 @@ static void unsubscribe(afb_req_t req)
else
{
struct json_object *ent;
- n = json_object_array_length(val);
+ n = (int)json_object_array_length(val);
for (i = 0; i < n; i++)
{
- ent = json_object_array_get_idx(val,i);
+ ent = json_object_array_get_idx(val, (size_t)i);
err += unsubscribe_signal(req, json_object_get_string(ent));
}
}