From f9fd5855916a4ececbd18c0b6a0827a1d3c75318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Date: Thu, 3 Jan 2008 21:33:02 -0200 Subject: [PATCH] [CODIFF]: Be even more consistent on the summary lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forgotten change similar to the previous patch. Signed-off-by: Ilpo Järvinen Signed-off-by: Arnaldo Carvalho de Melo --- codiff.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/codiff.c b/codiff.c index 0eada19..3e59e95 100644 --- a/codiff.c +++ b/codiff.c @@ -568,27 +568,20 @@ static int cu_show_diffs_iterator(struct cu *cu, void *cookie) static void print_total_function_diff(const char *filename) { - int kind = 0; - printf("\n%s:\n", filename); printf(" %u function%s changed", total_nr_functions_changed, total_nr_functions_changed > 1 ? "s" : ""); - if (total_function_bytes_added != 0) { - ++kind; + if (total_function_bytes_added != 0) printf(", %u bytes added", total_function_bytes_added); - } - if (total_function_bytes_removed != 0) { - ++kind; + if (total_function_bytes_removed != 0) printf(", %u bytes removed", total_function_bytes_removed); - } - if (kind == 2) - printf(", diff: %+d", - (total_function_bytes_added - - total_function_bytes_removed)); + printf(", diff: %+d", + (total_function_bytes_added - + total_function_bytes_removed)); putchar('\n'); }