mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 21:21:53 +00:00
fixed typcasting
This commit is contained in:
@@ -41,7 +41,7 @@ int uwsgi_routing_func_http(struct wsgi_request *wsgi_req, struct uwsgi_route *u
|
||||
if (wsgi_req->post_cl > 0) {
|
||||
int post_fd = wsgi_req->poll.fd;
|
||||
if (wsgi_req->async_post) {
|
||||
post_fd = fileno(wsgi_req->async_post);
|
||||
post_fd = fileno((FILE *)wsgi_req->async_post);
|
||||
}
|
||||
ret = uwsgi_pipe_sized(post_fd, http_fd, wsgi_req->post_cl, 0);
|
||||
if (ret < 0) {
|
||||
|
||||
@@ -52,7 +52,7 @@ int uwsgi_routing_func_uwsgi_remote(struct wsgi_request *wsgi_req, struct uwsgi_
|
||||
|
||||
int post_fd = wsgi_req->poll.fd;
|
||||
if (wsgi_req->async_post) {
|
||||
post_fd = fileno(wsgi_req->async_post);
|
||||
post_fd = fileno((FILE*)wsgi_req->async_post);
|
||||
}
|
||||
|
||||
if (uwsgi_send_message(uwsgi_fd, uh->modifier1, uh->modifier2, wsgi_req->buffer, wsgi_req->uh.pktsize, post_fd, wsgi_req->post_cl, 0) < 0) {
|
||||
|
||||
Reference in New Issue
Block a user