X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/969f7ed5b798d429236c8350e417b58172293a7f..f5761a342b4d5c0bb1351fc01f3f513f87b248f4:/exclude.c diff --git a/exclude.c b/exclude.c index 1541df77..df69ad3a 100644 --- 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;