diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-11-23 14:38:54 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-11-24 17:44:58 +0100 |
commit | 633ebe33015554a14b773053188e2faba0faff04 (patch) | |
tree | 34080e2dd843575bb25a129cdf9867478ba227b6 | |
parent | 094ea33c950a711956e0b894eaa974edf2d102ed (diff) |
afm-binding: Fix bug in evaluation of runid
Change-Id: I7a87a75d2effb7ad959b7a5c495402701f505529
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afm-binding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afm-binding.c b/src/afm-binding.c index 1ff0eb2..ce6e9f1 100644 --- 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, "{ss}", "runid", runid)) { + if (wrap_json_unpack(json, "i", runid) + && wrap_json_unpack(json, "{si}", "runid", runid)) { INFO("bad request method %s: %s", method, json_object_to_json_string(json)); bad_request(req); |