FreeBSD fixes

This commit is contained in:
roberto@freebsd64
2010-11-13 07:04:51 +01:00
parent 040d1a9d0b
commit 6fc40077be
+1 -1
View File
@@ -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;