From 2a6a6609d2617cda251b55b5c2fdafd8b19ca279 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Tue, 21 Feb 2017 09:22:10 +0100 Subject: [PATCH] fix issue for C++ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I14b5fb9a0f517d5a784cbbc43ca1401877d0f2fe Signed-off-by: José Bollo --- include/afb/afb-req-itf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/afb/afb-req-itf.h b/include/afb/afb-req-itf.h index 153887b0..82372d17 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); -- 2.16.6