md5sum, sha1sum integer cleanups.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Jul 2004 00:55:09 +0000 (00:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 Jul 2004 00:55:09 +0000 (00:55 +0000)
ChangeLog

index c38feec7822d1babc7b91513f784283f88c7aaba..1af7cde6e836109a4bbaac275ed05a402d38ceb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2004-07-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       md5sum, sha1sum integer cleanups.
+
+       * src/checksum.h: Don't include config.h, sys/types.h, stdio.h:
+       not needed.
+       (ALG_UNSPECIFIED): Remove.
+       (ALG_MDT): Don't make it equal to CHAR_MAX + 1; this isn't necessary.
+       * src/md5.c: Don't include any files other than checksum.h.
+       * src/sha1sum.c: Likewise.
+       * src/md5sum.c (OPENOPTS, have_read_stdin, status_only, warn,
+       bsd_split_3, split_3, hex_digits, digest_file, digest_check, main):
+       Use bool when appropriate.
+       (digest_check): Increase limit of number of input lines to
+       UINTMAX_MAX from INT_MAX.  Diagnose any overflows of this counter.
+       Use ngettext instead of hard-to-i18nize hardcoded stuff for plurals.
+       
 2004-07-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        * src/cat.c (exit_status): Remove.  Now done by passing a boolean