Skip to content

Commit

Permalink
Replaced all other occurrences of uv_run to include the extra parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
arianitu committed Jan 23, 2013
1 parent 9f05d81 commit fcf23ed
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion code/cgi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ int main() {
fprintf(stderr, "Listen error %s\n", uv_err_name(uv_last_error(loop)));
return 1;
}
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/detach/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ int main() {
fprintf(stderr, "Launched sleep with PID %d\n", child_req.pid);
uv_unref((uv_handle_t*) &child_req);

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/dns/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ int main() {
fprintf(stderr, "getaddrinfo call error %s\n", uv_err_name(uv_last_error(loop)));
return 1;
}
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/idle-compute/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ int main() {

uv_fs_read(loop, &stdin_watcher, 1, buffer, 1024, -1, on_type);
uv_idle_start(&idler, crunch_away);
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/multi-echo-server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ int main() {
fprintf(stderr, "Listen error %s\n", uv_err_name(uv_last_error(loop)));
return 2;
}
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/multi-echo-server/worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ int main() {
uv_pipe_init(loop, &queue, 1);
uv_pipe_open(&queue, 0);
uv_read2_start((uv_stream_t*)&queue, alloc_buffer, on_new_connection);
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/onchange/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ int main(int argc, char **argv) {
uv_fs_event_init(loop, (uv_fs_event_t*) malloc(sizeof(uv_fs_event_t)), argv[argc], run_command, 0);
}

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/pipe-echo-server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ int main() {
fprintf(stderr, "Listen error %s\n", uv_err_name(uv_last_error(loop)));
return 2;
}
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/proc-streams/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ int main() {
return 1;
}

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/progress/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ int main() {
uv_async_init(loop, &async, print_progress);
uv_queue_work(loop, &req, fake_download, after);

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/queue-work/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ int main() {
uv_queue_work(loop, &req[i], fib, after_fib);
}

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/ref-timer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ int main() {
// could actually be a TCP download or something
uv_timer_init(loop, &fake_job_req);
uv_timer_start(&fake_job_req, fake_job, 9000, 0);
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/spawn/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ int main() {
return 1;
}

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/tcp-echo-server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ int main() {
fprintf(stderr, "Listen error %s\n", uv_err_name(uv_last_error(loop)));
return 1;
}
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/tty-gravity/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ int main() {
fprintf(stderr, "Width %d, height %d\n", width, height);
uv_timer_init(loop, &tick);
uv_timer_start(&tick, update, 200, 200);
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/tty/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ int main() {
buf.len = strlen(buf.base);
uv_write(&req, (uv_stream_t*) &tty, &buf, 1, NULL);
uv_tty_reset_mode();
return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/udp-dhcp/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ int main() {
struct sockaddr_in send_addr = uv_ip4_addr("255.255.255.255", 67);
uv_udp_send(&send_req, &send_socket, &discover_msg, 1, send_addr, on_send);

return uv_run(loop);
return uv_run(loop, UV_RUN_DEFAULT);
}
2 changes: 1 addition & 1 deletion code/uvtee/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ int main(int argc, char **argv) {

uv_read_start((uv_stream_t*)&stdin_pipe, alloc_buffer, read_stdin);

uv_run(loop);
uv_run(loop, UV_RUN_DEFAULT);
return 0;
}
2 changes: 1 addition & 1 deletion code/uvwget/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ int main(int argc, char **argv) {
add_download(argv[argc], argc);
}

uv_run(loop);
uv_run(loop, UV_RUN_DEFAULT);
curl_multi_cleanup(curl_handle);
return 0;
}

0 comments on commit fcf23ed

Please sign in to comment.