From db4d63597b22b63eb73b5c0558476652ed4988bb Mon Sep 17 00:00:00 2001 From: fulup Date: Sun, 9 Jul 2017 19:59:24 +0200 Subject: initial version of HAL (registration + getctls) Work in progress --- ALSA-afb/Alsa-Ucm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ALSA-afb/Alsa-Ucm.c') 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); -- cgit 1.2.3-korg