From: Jim Meyering Date: Mon, 30 Jan 2023 16:33:10 +0000 (-0800) Subject: digest.c: remove a duplicate variable X-Git-Tag: v9.2~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c830d40e03fe01db650f52292c6cfa3fced01a2;p=thirdparty%2Fcoreutils.git digest.c: remove a duplicate variable * src/digest.c (digest_check): Locals n_misformatted_lines and n_improperly_formatted_lines were declared and set/incremented identically. Remove declaration of the latter. Use the other instead. --- diff --git a/src/digest.c b/src/digest.c index 20c9940bff..8f9354b6ac 100644 --- a/src/digest.c +++ b/src/digest.c @@ -1026,7 +1026,6 @@ digest_check (char const *checkfile_name) { FILE *checkfile_stream; uintmax_t n_misformatted_lines = 0; - uintmax_t n_improperly_formatted_lines = 0; uintmax_t n_mismatched_checksums = 0; uintmax_t n_open_or_read_failures = 0; bool properly_formatted_lines = false; @@ -1102,8 +1101,6 @@ digest_check (char const *checkfile_name) quotef (checkfile_name), line_number, DIGEST_TYPE_STRING); } - - ++n_improperly_formatted_lines; } else { @@ -1236,7 +1233,7 @@ digest_check (char const *checkfile_name) && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 - && (!strict || n_improperly_formatted_lines == 0)); + && (!strict || n_misformatted_lines == 0)); } int