Man page: Move the description of --info=progress2 to a better place.
[rsync/rsync.git] / batch.c
diff --git a/batch.c b/batch.c
index 369d82f..b63f0c5 100644 (file)
--- a/batch.c
+++ b/batch.c
@@ -43,7 +43,7 @@ extern char *batch_name;
 extern char *iconv_opt;
 #endif
 
-extern struct filter_list_struct filter_list;
+extern filter_rule_list filter_list;
 
 int batch_stream_flags;
 
@@ -191,12 +191,12 @@ static int write_arg(int fd, char *arg)
 
 static void write_filter_rules(int fd)
 {
-       struct filter_struct *ent;
+       filter_rule *ent;
 
        write_sbuf(fd, " <<'#E#'\n");
        for (ent = filter_list.head; ent; ent = ent->next) {
                unsigned int plen;
-               char *p = get_rule_prefix(ent->rflags, "- ", 0, &plen);
+               char *p = get_rule_prefix(ent, "- ", 0, &plen);
                write_buf(fd, p, plen);
                write_sbuf(fd, ent->pattern);
                if (ent->rflags & FILTRULE_DIRECTORY)