From 727043074a5beb6278856587c909e9c1a1e844eb Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 25 Oct 2010 16:07:46 +0200 Subject: [PATCH] _libssh2_channel_write: fix warnings --- src/channel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/channel.c b/src/channel.c index bdc6c59..9775e15 100644 --- a/src/channel.c +++ b/src/channel.c @@ -2116,7 +2116,6 @@ ssize_t _libssh2_channel_write(LIBSSH2_CHANNEL *channel, int stream_id, const unsigned char *buf, size_t buflen) { - LIBSSH2_SESSION *session = channel->session; int rc = 0; ssize_t wrote = 0; @@ -2132,7 +2131,7 @@ _libssh2_channel_write(LIBSSH2_CHANNEL *channel, int stream_id, else if(rc < 0) return rc; - if(rc != channel->transport_buflen) { + if(rc != (int)channel->transport_buflen) { /* previous buffer not drained yet */ channel->transport_buf += rc; channel->transport_buflen -= rc;