X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-req-v1.h;h=f1bcd47df3e96a5b9c48173707474b5d6ec3b145;hb=a708fcbcb234af8ffe69d04786e44472b45f3559;hp=03b4ee688bf3804f25c80720a44251d36bed0afa;hpb=c6380108964e71f533d8c672bb9c217020a95e8d;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-req-v1.h b/include/afb/afb-req-v1.h index 03b4ee68..f1bcd47d 100644 --- a/include/afb/afb-req-v1.h +++ b/include/afb/afb-req-v1.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" * Author: José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,7 +18,7 @@ #pragma once #include -#include "afb-req-common.h" +#include "afb-req.h" /* * Stores 'req' on heap for asynchrnous use. @@ -29,7 +29,7 @@ static inline struct afb_req *afb_req_store_v1(struct afb_req req) { struct afb_req *result = (struct afb_req*)malloc(sizeof *result); - if (result != NULL) { + if (result) { *result = req; afb_req_addref(req); }