]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(bsd_sum_file, sysv_sym_file):
authorJim Meyering <jim@meyering.net>
Tue, 5 Nov 2002 20:33:35 +0000 (20:33 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 5 Nov 2002 20:33:35 +0000 (20:33 +0000)
Use primitives from inttostr.h, not human.h, to print large numbers simply.

src/sum.c

index d5e667a0c734a7bc26b86bccf3a005ef8b45c31c..13d728842e3ceff38c57cb184f35ddc36b29b873 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -133,7 +133,7 @@ bsd_sum_file (const char *file, int print_name)
     }
 
   printf ("%05d %5s", checksum,
-         human_readable_inexact (total_bytes, hbuf, 1, 1024, human_ceiling));
+         human_readable (total_bytes, hbuf, human_ceiling, 1, 1024));
   if (print_name > 1)
     printf (" %s", file);
   putchar ('\n');
@@ -207,7 +207,7 @@ sysv_sum_file (const char *file, int print_name)
   checksum = (r & 0xffff) + (r >> 16);
 
   printf ("%d %s", checksum,
-         human_readable_inexact (total_bytes, hbuf, 1, 512, human_ceiling));
+         human_readable (total_bytes, hbuf, human_ceiling, 1, 512));
   if (print_name)
     printf (" %s", file);
   putchar ('\n');