diff options
author | Jim Meyering <jim@meyering.net> | 1996-07-04 14:53:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-07-04 14:53:25 +0000 |
commit | 2926167cfab884aab812101db28a173d2c0aac5b (patch) | |
tree | 7119753bb3c4b14bf5291f7a3be2967d4ff06635 /src | |
parent | 84448306a4f0216ac20c5e8c04e6713403abd910 (diff) | |
download | coreutils-2926167cfab884aab812101db28a173d2c0aac5b.tar.xz |
(md5_file): Replace obsolete comment with a description
of the function.
(md5_check): Don't use "s"-adding trick to form the plural of
`checksum.' That doesn't work well with translation.
Suggestions from Ulrich Drepper.
Diffstat (limited to 'src')
-rw-r--r-- | src/md5sum.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index b1e87df0e..7cabcd3bd 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -230,7 +230,9 @@ hex_digits (const char *s) return 1; } -/* FIXME: allow newline in filename by encoding it. */ +/* An interface to md5_stream. Operate on FILENAME (it may be "-") and + put the result in *MD5_RESULT. Return non-zero upon failure, zero + to indicate success. */ static int md5_file (const char *filename, int binary, unsigned char *md5_result) @@ -425,9 +427,10 @@ md5_check (const char *checkfile_name, int binary) if (n_mismatched_checksums > 0) { error (0, 0, - _("WARNING: %d of %d computed checksum%s did NOT match"), + _("WARNING: %d of %d computed %s did NOT match"), n_mismatched_checksums, n_computed_checkums, - (n_computed_checkums == 1 ? "" : "s")); + (n_computed_checkums == 1 + ? _("checksum") : _("checksums"))); } } } |