From 409316018def52e45fa7abae12d6f7c771593de4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 28 Sep 2014 00:02:13 +0900 Subject: [PATCH] examples: Fix travis error: unreachable-code --- examples/tiny-nghttpd.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/examples/tiny-nghttpd.c b/examples/tiny-nghttpd.c index a6546c98..5de65538 100644 --- a/examples/tiny-nghttpd.c +++ b/examples/tiny-nghttpd.c @@ -538,8 +538,6 @@ static int io_loop_run(io_loop *loop, server *serv) evhn->handler(loop, ev->events, ev->data.ptr); } } - - return 0; } static int handle_timer(io_loop *loop, uint32_t events, void *ptr) @@ -602,8 +600,6 @@ static int handle_accept(io_loop *loop, uint32_t events, void *ptr) connection_del(conn); } } - - return 0; } static void stream_error @@ -1118,8 +1114,6 @@ static int do_read(connection *conn) return -1; } } - - return 0; } static int do_write(connection *conn) @@ -1177,8 +1171,6 @@ static int do_write(connection *conn) io_buf_add(&conn->buf, b, n); } } - - return 0; } static int handle_connection(io_loop *loop, uint32_t events, void *ptr)