diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-07-09 19:59:24 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-07-09 19:59:24 +0200 |
commit | db4d63597b22b63eb73b5c0558476652ed4988bb (patch) | |
tree | 839d67c2dd32064f1047f788f70860cf3036e691 /ALSA-afb/Alsa-Ucm.c | |
parent | 3d5816a07c22dd6c655a60000fb0f175d613e484 (diff) |
initial version of HAL (registration + getctls)
Work in progress
Diffstat (limited to 'ALSA-afb/Alsa-Ucm.c')
-rw-r--r-- | ALSA-afb/Alsa-Ucm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ALSA-afb/Alsa-Ucm.c b/ALSA-afb/Alsa-Ucm.c index bc492b3..b2039be 100644 --- a/ALSA-afb/Alsa-Ucm.c +++ b/ALSA-afb/Alsa-Ucm.c @@ -275,17 +275,17 @@ PUBLIC void alsaUseCaseGet (struct afb_req request) { enum json_type jtype= json_object_get_type(jLabels); switch (jtype) { - json_object *jTmp; + json_object *tmpJ; case json_type_array: labelCount = json_object_array_length (jLabels); break; case json_type_string: - jTmp = json_object_new_array (); + tmpJ = json_object_new_array (); labelCount = 1; - json_object_array_add (jTmp, jLabels); - jLabels=jTmp; + json_object_array_add (tmpJ, jLabels); + jLabels=tmpJ; break; default: @@ -308,9 +308,9 @@ PUBLIC void alsaUseCaseGet (struct afb_req request) { // use info section to notified not found values label if (json_object_array_length (jWarnings) > 0) { - json_object *jTmp = json_object_new_object (); - json_object_object_add (jTmp, "no-context", jWarnings); - warnings= json_object_get_string (jTmp); + json_object *tmpJ = json_object_new_object (); + json_object_object_add (tmpJ, "no-context", jWarnings); + warnings= json_object_get_string (tmpJ); } afb_req_success (request, jResponse, warnings); |