summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-26 21:57:56 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-26 21:57:56 +0200
commitb161af0475e1b0864ab7f57390a63f77698d98e1 (patch)
treee2c2aaeacb3c83a95ab59c15c36675bd84718824
parentd0c6ddd92fe99c8ad0059c7ba96a62c09fc3a63d (diff)
fix warning signed/unsigned
Change-Id: Iefff8428c64b1432b95affe09273ce66bc7046ff Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-hreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 2e74f2d4..c90b2372 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -657,7 +657,7 @@ static void req_send(struct afb_hreq *hreq, char *buffer, size_t size)
static ssize_t send_json_cb(json_object *obj, uint64_t pos, char *buf, size_t max)
{
ssize_t len = stpncpy(buf, json_object_to_json_string(obj)+pos, max) - buf;
- return len ? : MHD_CONTENT_READER_END_OF_STREAM;
+ return len ? : (ssize_t)MHD_CONTENT_READER_END_OF_STREAM;
}
static void req_reply(struct afb_hreq *hreq, unsigned retcode, const char *status, const char *info, json_object *resp)