Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-client-demo: real raw output when --raw is set
[src/app-framework-binder.git]
/
include
/
afb
/
afb-req-v1.h
diff --git
a/include/afb/afb-req-v1.h
b/include/afb/afb-req-v1.h
index
03b4ee6
..
f1bcd47
100644
(file)
--- 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 <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-18,7
+18,7
@@
#pragma once
#include <stdlib.h>
#pragma once
#include <stdlib.h>
-#include "afb-req
-common
.h"
+#include "afb-req.h"
/*
* Stores 'req' on heap for asynchrnous use.
/*
* 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);
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);
}
*result = req;
afb_req_addref(req);
}