summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-Ucm.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-19 11:56:59 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-20 11:39:22 +0000
commit22043a68d0fe0652dd7e0b1041f6f448e867390b (patch)
tree6cad9b1e8b50b98fe6ed561f4c3670612b087b1e /alsa-binding/Alsa-Ucm.c
parent4303ba22a8cacea808eaf8f487303d1360ac4150 (diff)
Correct warning that was raised at compilation
Correct warning that was raised at compilation concerning 3 subjects : - Too short strings for 'snprintf'. - Forget cast returns of 'json_object_array_length' function. - Checking return of 'asprintf' function. Change-Id: I0fc702750841a0f8da921c3c3b1453c5afee0fd8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-Ucm.c')
-rw-r--r--alsa-binding/Alsa-Ucm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-Ucm.c b/alsa-binding/Alsa-Ucm.c
index d608e61..0c65f2c 100644
--- a/alsa-binding/Alsa-Ucm.c
+++ b/alsa-binding/Alsa-Ucm.c
@@ -278,7 +278,7 @@ PUBLIC void alsaUseCaseGet(struct afb_req request) {
json_object *tmpJ;
case json_type_array:
- labelCount = json_object_array_length(jLabels);
+ labelCount = (int) json_object_array_length(jLabels);
break;
case json_type_string: