From 6fc40077be0c445c5eecf67d976732cc1ce87f5c Mon Sep 17 00:00:00 2001 From: "roberto@freebsd64" Date: Sat, 13 Nov 2010 07:04:51 +0100 Subject: [PATCH] FreeBSD fixes --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index bcfc2b24..61a58811 100644 --- a/utils.c +++ b/utils.c @@ -985,7 +985,7 @@ cycle: } // resue buf for json buffer - ret = snprintf(buf, len, "{ \"state\" : \"uploading\", \"received\" : %d, \"size\" : %d }\r\n", wsgi_req->post_cl - post_remains, wsgi_req->post_cl); + ret = snprintf(buf, len, "{ \"state\" : \"uploading\", \"received\" : %d, \"size\" : %d }\r\n", (int) (wsgi_req->post_cl - post_remains), (int) wsgi_req->post_cl); if (ret < 0) { uwsgi_log("unable to write JSON data in upload progress file %s\n", upload_progress_filename); goto end;