Skip to content

Commit

Permalink
fix osx compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo@montag committed Sep 5, 2010
1 parent b245307 commit 527ad44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ void uwsgi_proxy(int proxyfd) {
for (i = 0; i < nevents; i++) {


if (eevents[i].ASYNC_FD == proxyfd) {
if ( (int)eevents[i].ASYNC_FD == proxyfd) {

if (eevents[i].ASYNC_IS_IN) {
// new connection, accept it
ev.ASYNC_FD = accept(proxyfd, (struct sockaddr *) &upc_addr, &upc_len);
if (ev.ASYNC_FD < 0) {
if ( (int) ev.ASYNC_FD < 0) {
uwsgi_error("accept()");
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion uwsgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ int main(int argc, char *argv[], char *envp[]) {

for(i=0; i<uwsgi.async_nevents;i++) {

if (uwsgi.async_events[i].ASYNC_FD == uwsgi.serverfd) {
if ( (int) uwsgi.async_events[i].ASYNC_FD == uwsgi.serverfd) {

uwsgi.wsgi_req = find_first_available_wsgi_req(&uwsgi);
if (uwsgi.wsgi_req == NULL) {
Expand Down

0 comments on commit 527ad44

Please sign in to comment.