X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-itf.h;h=6b6c8b70c7767fadab3d12f3b65b38265be712a0;hb=c710a0da4ebcc126275c42a0387ff85b2557e3ae;hp=c980838e8eed08a2da5f45c8026b7871d0c363c4;hpb=a38382e89710db2c298f7f101e3ba0cf3681287c;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req-itf.h b/include/afb/afb-req-itf.h index c980838e..6b6c8b70 100644 --- a/include/afb/afb-req-itf.h +++ b/include/afb/afb-req-itf.h @@ -25,7 +25,7 @@ #include #include -#include +#include "afb-event-itf.h" /* avoid inclusion of */ struct json_object; @@ -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);