diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-11 20:50:16 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:52:51 +0200 |
commit | 2f4d9d83892d6cc32ea329a3d1ae2f003e912b3c (patch) | |
tree | 2600c891e1a06f16e8974334cb6a97e1a93f13d0 /4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c | |
parent | 3611753da97f29fc1342ac33a34a25f79acdc672 (diff) |
Correct a cast error
Correct a cast error that was causing a segfault in
some unknown condition.
Change-Id: I96c89c04d4f6bd5177446c56b4c50cbab30b4830
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c')
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c index 8f2f418..7825f75 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c @@ -242,7 +242,7 @@ int HalCtlsGetAlsaCtlInfo(AFB_ApiT apiHandle, char *cardId, struct CtlHalAlsaCtl if(wrap_json_unpack(returnedJ, "{s:{s:{s?:i s?:i s?:i s?:i s?:i}}}", "response", "ctl", - "type", (snd_ctl_elem_type_t) ¤tAlsaCtl->alsaCtlProperties.type, + "type", (int *) ¤tAlsaCtl->alsaCtlProperties.type, "count", ¤tAlsaCtl->alsaCtlProperties.count, "min", ¤tAlsaCtl->alsaCtlProperties.minval, "max", ¤tAlsaCtl->alsaCtlProperties.maxval, |