mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
d73ca62c4f
commit
5c830d40e0
1 file changed
+1
-4
+1
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user