From 0b0aa209f6f797e60ba57fbe4b92861d7b211fc9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 Apr 2011 10:45:39 +0200 Subject: [PATCH] scp_write_nonblock.c: remove pointless check libssh2_channel_write() cannot return a value that is larger than the input length value --- example/scp_write_nonblock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/example/scp_write_nonblock.c b/example/scp_write_nonblock.c index d7068ae..91209bc 100644 --- a/example/scp_write_nonblock.c +++ b/example/scp_write_nonblock.c @@ -235,9 +235,7 @@ int main(int argc, char *argv[]) } else { prev = nread; - if(rc > nread) { - fprintf(stderr, "MOO %d > %d\n", (int)rc, (int)nread); - } + /* rc indicates how many bytes were written this time */ nread -= rc; ptr += rc;