From 0971b67f68eabe84e58ba202abe73d50c878d1ac Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 10 Jul 2018 17:45:52 +0000 Subject: Fix a few, but not all, clang warnings: Use "%s" to print modifiable strings, add a couple of braces, ansify a few functions, add and remove a few extra parens. ok jcs --- gnu/usr.bin/cvs/diff/side.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/cvs/diff/side.c') diff --git a/gnu/usr.bin/cvs/diff/side.c b/gnu/usr.bin/cvs/diff/side.c index d776e77eab3..8836c1f471e 100644 --- a/gnu/usr.bin/cvs/diff/side.c +++ b/gnu/usr.bin/cvs/diff/side.c @@ -122,7 +122,7 @@ print_half_line (line, indent, out_bound) break; case '\b': - if (in_position != 0 && --in_position < out_bound) + if (in_position != 0 && --in_position < out_bound) { if (out_position <= in_position) /* Add spaces to make up for suppressed tab past out_bound. */ for (; out_position < in_position; out_position++) @@ -133,6 +133,7 @@ print_half_line (line, indent, out_bound) cc = c; write_output (&cc, 1); } + } break; case '\f': -- cgit v1.2.3-59-g8ed1b