From c903bc3f320db88754a2b46da775f9bb2e65710b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 12 Oct 2011 12:25:05 -0700 Subject: [PATCH] unix: fix a few compiler warnings --- src/unix/stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index 9f2f0ecf..855f45bc 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -482,7 +482,6 @@ static void uv__read(uv_stream_t* stream) { struct msghdr msg; struct cmsghdr* cmsg; char cmsg_space[64]; - int received_fd = -1; struct ev_loop* ev = stream->loop->ev; /* XXX: Maybe instead of having UV_READING we just test if @@ -564,7 +563,7 @@ static void uv__read(uv_stream_t* stream) { return; } else { /* Successful read */ - size_t buflen = buf.len; + ssize_t buflen = buf.len; if (stream->read_cb) { stream->read_cb(stream, nread, buf);