summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-SetGet.c
diff options
context:
space:
mode:
Diffstat (limited to 'alsa-binding/Alsa-SetGet.c')
-rw-r--r--alsa-binding/Alsa-SetGet.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c
index a755b02..00e7bec 100644
--- a/alsa-binding/Alsa-SetGet.c
+++ b/alsa-binding/Alsa-SetGet.c
@@ -74,7 +74,7 @@ PUBLIC void NumidsListParse(ActionSetGetT action, queryValuesT *queryValues, ctl
case json_type_array:
// NUMID is an array 1st slot should be numid, optionally values may come after
- length = json_object_array_length(ctlRequest[idx].jToken);
+ length = (int) json_object_array_length(ctlRequest[idx].jToken);
// numid must be in 1st slot of numid json array
ctlRequest[idx].numId = json_object_get_int(json_object_array_get_idx(ctlRequest[idx].jToken, 0));
@@ -114,7 +114,7 @@ PUBLIC void NumidsListParse(ActionSetGetT action, queryValuesT *queryValues, ctl
}
STATIC json_object *DB2StringJsonOject(long dB) {
- char label [20];
+ char label [32];
if (dB < 0) {
snprintf(label, sizeof (label), "-%li.%02lidB", -dB / 100, -dB % 100);
} else {
@@ -524,7 +524,7 @@ PUBLIC int alsaSetSingleCtl(snd_ctl_t *ctlDev, snd_ctl_elem_id_t *elemId, ctlReq
enum json_type jtype = json_object_get_type(ctlRequest->valuesJ);
switch (jtype) {
case json_type_array:
- length = json_object_array_length(ctlRequest->valuesJ);
+ length = (int) json_object_array_length(ctlRequest->valuesJ);
valueIsArray = 1;
break;
case json_type_int:
@@ -729,7 +729,7 @@ STATIC void alsaSetGetCtls(ActionSetGetT action, afb_req request) {
switch (jtype) {
case json_type_array:
queryValues.numidsJ = numidsJ;
- queryValues.count = json_object_array_length(numidsJ);
+ queryValues.count = (int) json_object_array_length(numidsJ);
break;
case json_type_int: