Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: replace C99/C++ comments, fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 15, 2012
1 parent 5d21056 commit 6dcce92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/test-ref.c
Expand Up @@ -45,7 +45,7 @@ static void write_unref_cb(uv_connect_t* req, int status) {
ASSERT(status == 0);

uv_write(&write_req, req->handle, &buf, 1, (uv_write_cb) fail_cb);
uv_unref(uv_default_loop()); // uv_write refs the loop
uv_unref(uv_default_loop()); /* uv_write refs the loop */
}


Expand All @@ -55,7 +55,7 @@ static void shutdown_unref_cb(uv_connect_t* req, int status) {
ASSERT(status == 0);

uv_shutdown(&shutdown_req, req->handle, (uv_shutdown_cb) fail_cb);
uv_unref(uv_default_loop()); // uv_shutdown refs the loop
uv_unref(uv_default_loop()); /* uv_shutdown refs the loop */
}


Expand Down
4 changes: 2 additions & 2 deletions test/test-tty.c
Expand Up @@ -25,7 +25,7 @@
#ifdef _WIN32
# include <io.h>
# include <windows.h>
#else // Unix
#else /* Unix */
# include <fcntl.h>
# include <unistd.h>
#endif
Expand All @@ -37,7 +37,7 @@ TEST_IMPL(tty) {
uv_tty_t tty_in, tty_out;
uv_loop_t* loop = uv_default_loop();

// Make sure we have an FD that refers to a tty
/* Make sure we have an FD that refers to a tty */
#ifdef _WIN32
HANDLE handle;
handle = CreateFileA("conin$",
Expand Down

0 comments on commit 6dcce92

Please sign in to comment.