From 718a285d131121e60ed1e619ee05e03063cf9e61 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sun, 3 Jun 2018 19:01:20 +0200 Subject: Add some missing cast Add some missing cast when getting controller hal data structure. Change-Id: I8fdfd7486345e89c4004c071b63890b751305ce2 Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '4a-hal') diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c index 90b4940..9b4ba26 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c @@ -102,7 +102,7 @@ void HalCtlsActionOnStream(afb_request *request) return; } - currentCtlHalData = ctrlConfig->external; + currentCtlHalData = (struct SpecificHalData *) ctrlConfig->external; if(! currentCtlHalData) { afb_request_fail(request, "hal_controller_data", "Can't get current hal controller data"); return; @@ -176,7 +176,7 @@ void HalCtlsListVerbs(afb_request *request) return; } - currentCtlHalData = ctrlConfig->external; + currentCtlHalData = (struct SpecificHalData *) ctrlConfig->external; if(! currentCtlHalData) { afb_request_fail(request, "hal_controller_data", "Can't get current hal controller data"); return; @@ -239,7 +239,7 @@ void HalCtlsInitMixer(afb_request *request) return; } - currentCtlHalData = ctrlConfig->external; + currentCtlHalData = (struct SpecificHalData *) ctrlConfig->external; if(! currentCtlHalData) { afb_request_fail(request, "hal_controller_data", "Can't get current hal controller data"); return; -- cgit 1.2.3-korg