summaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/bluetooth-api.c')
-rw-r--r--binding/bluetooth-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/bluetooth-api.c b/binding/bluetooth-api.c
index 6484b18..c731c34 100644
--- a/binding/bluetooth-api.c
+++ b/binding/bluetooth-api.c
@@ -534,7 +534,7 @@ static int bluetooth_get_adapters_count(struct init_data *id)
count = -EIO;
} else {
json_object_object_get_ex(jresp, "adapters", &jobj);
- count = json_object_array_length(jobj);
+ count = (int)json_object_array_length(jobj);
json_object_put(jresp);
}
return count;