aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-09-18 17:57:27 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-01 10:41:20 +0200
commitc7ad57e3193b9b21f33719ea9eb84837555b094a (patch)
treec44bb646b89abe5300e1a4c2ea3640cc9c7351cb
parent1990d6d7b71556589edc65bfac0e0814ead5c237 (diff)
Correct the use of wrong variable type
Correct the use of an 'unsigned int' instead of an 'int'. BUG-AGL: SPEC-2832 Change-Id: Iee374404c60698e9d243d0622eb1900c5cc8ae7e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--alsa-binding/Alsa-SetGet.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c
index 494c694..19b2164 100644
--- a/alsa-binding/Alsa-SetGet.c
+++ b/alsa-binding/Alsa-SetGet.c
@@ -736,8 +736,13 @@ STATIC json_object *getDeviceInfo(int card, int device)
// Retrieve info for one given card
STATIC json_object *alsaCardProbe(queryCardInfo *queryInfo) {
- int cardToProbe = NO_CARD_SELECTED, playbackDeviceToProbe, multipleCardToCheck, isCardCorresponding, isDeviceCorresponding;
- unsigned int searchingForDevice = 1, correspondingCard = NO_CARD_SELECTED;
+ int cardToProbe = NO_CARD_SELECTED,
+ correspondingCard = NO_CARD_SELECTED,
+ playbackDeviceToProbe,
+ multipleCardToCheck,
+ isCardCorresponding,
+ isDeviceCorresponding;
+ unsigned int searchingForDevice = 1;
json_object *correspondingCardJ, *correspondingDeviceJ = NULL, *correspondingCardAndDeviceJ, *toReturnJ;