From: Wayne Davison Date: Tue, 22 Jul 2008 06:11:04 +0000 (-0700) Subject: Got rid of a variable that was set but not used. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/a72f37bb67f16c2d5a17bae77f7a82bcfdd96a9c?ds=sidebyside Got rid of a variable that was set but not used. --- diff --git a/io.c b/io.c index 7cf272e8..d884846a 100644 --- a/io.c +++ b/io.c @@ -1091,7 +1091,6 @@ static int readfd_unbuffered(int fd, char *buf, size_t len) xbuf outbuf, inbuf; char ibuf[512]; int add_null = 0; - int pos = 0; INIT_CONST_XBUF(outbuf, line); INIT_XBUF(inbuf, ibuf, 0, -1); @@ -1106,7 +1105,6 @@ static int readfd_unbuffered(int fd, char *buf, size_t len) if (iconvbufs(ic_send, &inbuf, &outbuf, ICB_INCLUDE_BAD | ICB_INCLUDE_INCOMPLETE) < 0) goto overflow; - pos = -1; } if (add_null) { if (outbuf.len == outbuf.size)