From 2d40e35b7e53cfc57f55371757e9205d070fb284 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 12 Aug 2011 02:34:09 +0200 Subject: [PATCH] Style --- src/win/pipe.c | 4 ++-- test/echo-server.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win/pipe.c b/src/win/pipe.c index 766f0736..8cdbeebd 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -754,7 +754,7 @@ void uv_process_pipe_read_req(uv_pipe_t* handle, uv_req_t* req) { } if (avail == 0) { - // Nothing to read after all + /* There is nothing to read after all. */ break; } @@ -863,7 +863,7 @@ void uv_process_pipe_shutdown_req(uv_pipe_t* handle, uv_shutdown_t* req) { handle->handle = INVALID_HANDLE_VALUE; if (req->cb) { - ((uv_shutdown_cb) req->cb)(req, 0); + req->cb(req, 0); } DECREASE_PENDING_REQ_COUNT(handle); diff --git a/test/echo-server.c b/test/echo-server.c index a912dfeb..0bd7d2b0 100644 --- a/test/echo-server.c +++ b/test/echo-server.c @@ -90,7 +90,7 @@ static void after_read(uv_stream_t* handle, ssize_t nread, uv_buf_t buf) { return; } - /* + /* * Scan for the letter Q which signals that we should quit the server. * If we get QS it means close the stream. */