From: José Bollo Date: Tue, 21 Feb 2017 08:22:10 +0000 (+0100) Subject: fix issue for C++ X-Git-Tag: dab_3.99.1~139 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=69affc2edb055f6cd65fa1d55689272c28446d63 fix issue for C++ Change-Id: I14b5fb9a0f517d5a784cbbc43ca1401877d0f2fe Signed-off-by: José Bollo --- diff --git a/include/afb/afb-req-itf.h b/include/afb/afb-req-itf.h index c980838e..5116b133 100644 --- a/include/afb/afb-req-itf.h +++ b/include/afb/afb-req-itf.h @@ -310,7 +310,7 @@ static inline int afb_req_session_set_LOA(struct afb_req req, unsigned level) */ static inline struct afb_req *afb_req_store(struct afb_req req) { - struct afb_req *result = malloc(sizeof *result); + struct afb_req *result = (struct afb_req*)malloc(sizeof *result); if (result != NULL) { *result = req; afb_req_addref(req);