/*
- * Copyright (C) 2016, 2017 "IoT.bzh"
+ * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
#pragma once
#include <stdlib.h>
-#include "afb-req-common.h"
+#include "afb-req.h"
/*
* Stores 'req' on heap for asynchrnous use.
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);
}