- Restored some of Matt's suggested logic that I left out, as it
[rsync/rsync.git] / exclude.c
index 1541df7..df69ad3 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -911,7 +911,7 @@ void parse_rule(struct filter_list_struct *listp, const char *pattern,
 
                if (pat_len >= MAXPATHLEN) {
                        rprintf(FERROR, "discarding over-long filter: %.*s\n",
-                               pat_len, cp);
+                               (int)pat_len, cp);
                        continue;
                }
 
@@ -1141,7 +1141,7 @@ static void send_rules(int f_out, struct filter_list_struct *flp)
                if (!p) {
                        rprintf(FERROR,
                                "filter rules are too modern for remote rsync.\n");
-                       exit_cleanup(RERR_SYNTAX);
+                       exit_cleanup(RERR_PROTOCOL);
                }
                if (f_out < 0)
                        continue;