From: José Bollo Date: Tue, 26 Apr 2016 19:57:56 +0000 (+0200) Subject: fix warning signed/unsigned X-Git-Tag: blowfish_2.0.1~161 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=b161af0475e1b0864ab7f57390a63f77698d98e1;p=src%2Fapp-framework-binder.git fix warning signed/unsigned Change-Id: Iefff8428c64b1432b95affe09273ce66bc7046ff Signed-off-by: José Bollo --- 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)