@@ -55,7 +55,7 @@ static enum whitespace_eol {
55
55
} new_whitespace = warn_on_whitespace ;
56
56
static int whitespace_error ;
57
57
static int squelch_whitespace_errors = 5 ;
58
- static int applied_after_stripping ;
58
+ static int applied_after_fixing_ws ;
59
59
static const char * patch_input_file ;
60
60
61
61
static void parse_whitespace_option (const char * option )
@@ -1657,7 +1657,7 @@ static int apply_line(char *output, const char *patch, int plen)
1657
1657
if (add_nl_to_tail )
1658
1658
output [plen ++ ] = '\n' ;
1659
1659
if (fixed )
1660
- applied_after_stripping ++ ;
1660
+ applied_after_fixing_ws ++ ;
1661
1661
return output + plen - buf ;
1662
1662
}
1663
1663
@@ -2884,18 +2884,17 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
2884
2884
squelched == 1 ? "" : "s" );
2885
2885
}
2886
2886
if (new_whitespace == error_on_whitespace )
2887
- die ("%d line%s add%s trailing whitespaces ." ,
2887
+ die ("%d line%s add%s whitespace errors ." ,
2888
2888
whitespace_error ,
2889
2889
whitespace_error == 1 ? "" : "s" ,
2890
2890
whitespace_error == 1 ? "s" : "" );
2891
- if (applied_after_stripping )
2891
+ if (applied_after_fixing_ws )
2892
2892
fprintf (stderr , "warning: %d line%s applied after"
2893
- " stripping trailing whitespaces .\n" ,
2894
- applied_after_stripping ,
2895
- applied_after_stripping == 1 ? "" : "s" );
2893
+ " fixing whitespace errors .\n" ,
2894
+ applied_after_fixing_ws ,
2895
+ applied_after_fixing_ws == 1 ? "" : "s" );
2896
2896
else if (whitespace_error )
2897
- fprintf (stderr , "warning: %d line%s add%s trailing"
2898
- " whitespaces.\n" ,
2897
+ fprintf (stderr , "warning: %d line%s add%s whitespace errors.\n" ,
2899
2898
whitespace_error ,
2900
2899
whitespace_error == 1 ? "" : "s" ,
2901
2900
whitespace_error == 1 ? "s" : "" );
0 commit comments