diff options
author | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-11-20 11:53:25 +0100 |
---|---|---|
committer | Li Xiaoming <lixm.fnst@cn.fujitsu.com> | 2019-11-20 11:53:25 +0100 |
commit | 54d83caf8f92c6a68cf4e7fc067c31a5cc6880f1 (patch) | |
tree | 685b272a4a0a7d6eb346e0a53fe604a5abe38242 /src/af-steering-wheel-binding.c | |
parent | 32837eddf0644aef8c71a208d87aaa8140eeafaa (diff) |
Fix build warning of typecasticefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.58.99.48.99.38.99.28.99.1
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.c | 4 |
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)); } } |