diff options
author | Jim Meyering <jim@meyering.net> | 2002-11-05 20:34:00 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-11-05 20:34:00 +0000 |
commit | c7a6c9af8b39972a2bf662f777adbc7e11c845a8 (patch) | |
tree | 7477330a0eec5eaee6401ccc047e99002e8600b7 /src | |
parent | 49cfd5a52c65b5d2cdf163c7f190eff6cefcecb5 (diff) | |
download | coreutils-c7a6c9af8b39972a2bf662f777adbc7e11c845a8.tar.xz |
(checkfp): Use primitives from inttostr.h, not human.h,
to print large numbers simply.
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c index 9a36464ac..a8c0d8ed4 100644 --- a/src/sort.c +++ b/src/sort.c @@ -32,7 +32,7 @@ #include "long-options.h" #include "error.h" #include "hard-locale.h" -#include "human.h" +#include "inttostr.h" #include "physmem.h" #include "posixver.h" #include "stdio-safer.h" @@ -1566,13 +1566,13 @@ checkfp (FILE *fp, char *file_name) { found_disorder: { - char hr_buf[LONGEST_HUMAN_READABLE + 1]; struct line const *disorder_line = line - 1; uintmax_t disorder_line_number = buffer_linelim (&buf) - disorder_line + line_number; + char hr_buf[INT_BUFSIZE_BOUND (uintmax_t)]; fprintf (stderr, _("%s: %s:%s: disorder: "), program_name, file_name, - human_readable (disorder_line_number, hr_buf, 1, 1)); + umaxtostr (disorder_line_number, hr_buf)); write_bytes (disorder_line->text, disorder_line->length, stderr, _("standard error")); disordered = 1; |