summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-05 20:14:41 +0000
committerJim Meyering <jim@meyering.net>2002-11-05 20:14:41 +0000
commit1e583af98a5279cf4861c421f1240ffa93886a0d (patch)
tree2c78020d7d558a5a3234dc947af4a01ef0d1476f /src
parenta591db74651d5406dc7452c5bf9c862a8c234231 (diff)
downloadcoreutils-1e583af98a5279cf4861c421f1240ffa93886a0d.tar.xz
(handle_line_error, parse_patterns):
Use primitives from inttostr.h, not human.h, to print large numbers simply.
Diffstat (limited to 'src')
-rw-r--r--src/csplit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/csplit.c b/src/csplit.c
index 2d741d81e..a6f69095d 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -31,7 +31,7 @@
#include <regex.h>
#include "error.h"
-#include "human.h"
+#include "inttostr.h"
#include "safe-read.h"
#include "xstrtol.h"
@@ -738,10 +738,10 @@ dump_rest_of_file (void)
static void
handle_line_error (const struct control *p, int repetition)
{
- char buf[LONGEST_HUMAN_READABLE + 1];
+ char buf[INT_BUFSIZE_BOUND (uintmax_t)];
fprintf (stderr, _("%s: `%s': line number out of range"),
- program_name, human_readable (p->lines_required, buf, 1, 1));
+ program_name, umaxtostr (p->lines_required, buf));
if (repetition)
fprintf (stderr, _(" on repetition %d\n"), repetition);
else
@@ -1178,10 +1178,10 @@ parse_patterns (int argc, int start, char **argv)
argv[i]);
if (val < last_val)
{
- char buf[LONGEST_HUMAN_READABLE + 1];
+ char buf[INT_BUFSIZE_BOUND (uintmax_t)];
error (EXIT_FAILURE, 0,
_("line number `%s' is smaller than preceding line number, %s"),
- argv[i], human_readable (last_val, buf, 1, 1));
+ argv[i], umaxtostr (last_val, buf));
}
if (val == last_val)