test: fix compilation warnings

PR-URL: https://github.com/libuv/libuv/pull/23
This commit is contained in:
Saúl Ibarra Corretgé 2014-12-02 09:34:44 +01:00
parent ff29322b99
commit b5442510c5
2 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,6 @@
/* Do platform-specific initialization. */
int platform_init(int argc, char **argv) {
const char* tap;
ssize_t n;
tap = getenv("UV_TAP_OUTPUT");
tap_output = (tap != NULL && atoi(tap) > 0);

View File

@ -54,7 +54,8 @@ TEST_IMPL(pipe_close_stdout_read_stdin) {
int fd[2];
int status;
pipe(fd);
r = pipe(fd);
ASSERT(r == 0);
if ((pid = fork()) == 0) {
/*
@ -63,7 +64,8 @@ TEST_IMPL(pipe_close_stdout_read_stdin) {
*/
close(fd[1]);
close(0);
dup(fd[0]);
r = dup(fd[0]);
ASSERT(r != -1);
/* Create a stream that reads from the pipe. */
uv_pipe_t stdin_pipe;