Moved declaration of "int i" outside the ifdef in send_protected_args().
authorWayne Davison <wayned@samba.org>
Mon, 17 Mar 2008 03:39:16 +0000 (20:39 -0700)
committerWayne Davison <wayned@samba.org>
Mon, 17 Mar 2008 03:39:16 +0000 (20:39 -0700)
rsync.c

diff --git a/rsync.c b/rsync.c
index c384ed9..48894c9 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -207,8 +207,9 @@ int iconvbufs(iconv_t ic, xbuf *in, xbuf *out, int flags)
 
 void send_protected_args(int fd, char *args[])
 {
 
 void send_protected_args(int fd, char *args[])
 {
+       int i;
 #ifdef ICONV_OPTION
 #ifdef ICONV_OPTION
-       int i, convert = ic_send != (iconv_t)-1;
+       int convert = ic_send != (iconv_t)-1;
        xbuf outbuf, inbuf;
 
        if (convert)
        xbuf outbuf, inbuf;
 
        if (convert)