summaryrefslogtreecommitdiffstats
path: root/src/af-steering-wheel-binding.c
diff options
context:
space:
mode:
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));
}
}