The branch, master has been updated
       via  8686d3a Move var declaration for older C compilers.
      from  73b9b90 Adding release info for 3.0.8 to the trunk.

;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 8686d3abba4c5b4baf443871cd19c673056a3392
Author: Wayne Davison <way...@samba.org>
Date:   Sun Apr 3 18:02:45 2011 -0700

    Move var declaration for older C compilers.

-----------------------------------------------------------------------

Summary of changes:
 flist.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/flist.c b/flist.c
index f90c286..0758f89 100644
--- a/flist.c
+++ b/flist.c
@@ -1734,11 +1734,12 @@ static void send_directory(int f, struct file_list 
*flist, char *fbuf, int len,
                remainder = 0;
 
        for (errno = 0, di = readdir(d); di; errno = 0, di = readdir(d)) {
+               unsigned name_len;
                char *dname = d_name(di);
                if (dname[0] == '.' && (dname[1] == '\0'
                    || (dname[1] == '.' && dname[2] == '\0')))
                        continue;
-               unsigned name_len = strlcpy(p, dname, remainder);
+               name_len = strlcpy(p, dname, remainder);
                if (name_len >= remainder) {
                        char save = fbuf[len];
                        fbuf[len] = '\0';


-- 
The rsync repository.
_______________________________________________
rsync-cvs mailing list
rsync-cvs@lists.samba.org
https://lists.samba.org/mailman/listinfo/rsync-cvs

Reply via email to