Code Review
/
src
/
app-framework-main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
094ea33
)
afm-binding: Fix bug in evaluation of runid
author
José Bollo
<jose.bollo@iot.bzh>
Thu, 23 Nov 2017 13:38:54 +0000
(14:38 +0100)
committer
José Bollo
<jose.bollo@iot.bzh>
Fri, 24 Nov 2017 16:44:58 +0000
(17:44 +0100)
Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afm-binding.c
patch
|
blob
|
history
diff --git
a/src/afm-binding.c
b/src/afm-binding.c
index
1ff0eb2
..
ce6e9f1
100644
(file)
--- a/
src/afm-binding.c
+++ b/
src/afm-binding.c
@@
-103,8
+103,8
@@
static int onrunid(struct afb_req req, const char *method, int *runid)
struct json_object *json;
json = afb_req_json(req);
- if (wrap_json_unpack(json, "
s
", runid)
- && wrap_json_unpack(json, "{s
s
}", "runid", runid)) {
+ if (wrap_json_unpack(json, "
i
", runid)
+ && wrap_json_unpack(json, "{s
i
}", "runid", runid)) {
INFO("bad request method %s: %s", method,
json_object_to_json_string(json));
bad_request(req);