summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-03-06 15:37:45 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2023-03-06 15:39:07 -0800
commita4778006c8f2b669afcc45456acf0d21f228208d (patch)
tree081860e13db3fea96132841c91290f81a64805c0 /src
parente30af1e5840fdcabe3856f9ffcd6354b94d0a7ee (diff)
downloadcoreutils-a4778006c8f2b669afcc45456acf0d21f228208d.tar.gz
maint: pacify ‘make syntax-check’
Problem reported by Pádraig Brady (Bug#61386#226). * src/split.c (parse_chunk): Use die instead of error. (main): Quote a string. * tests/local.mk (all_root_tests): Move du/apparent.sh from here ... (all_tests): ... to here.
Diffstat (limited to 'src')
-rw-r--r--src/split.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/split.c b/src/split.c
index cc581b6c6..95d174a8b 100644
--- a/src/split.c
+++ b/src/split.c
@@ -1325,8 +1325,8 @@ parse_chunk (intmax_t *k_units, intmax_t *n_units, char const *arg)
*n_units = parse_n_units (argend + 1, "",
N_("invalid number of chunks"));
if (! (0 < *k_units && *k_units <= *n_units))
- error (EXIT_FAILURE, 0, "%s: %s", _("invalid chunk number"),
- quote_mem (arg, argend - arg));
+ die (EXIT_FAILURE, 0, "%s: %s", _("invalid chunk number"),
+ quote_mem (arg, argend - arg));
}
else if (! (e <= OVERFLOW_OK && 0 < *n_units))
strtoint_die (N_("invalid number of chunks"), arg);
@@ -1561,7 +1561,7 @@ main (int argc, char **argv)
if (n_units == 0)
{
- error (0, 0, _("invalid number of lines: %s"), "0");
+ error (0, 0, _("invalid number of lines: %s"), quote ("0"));
usage (EXIT_FAILURE);
}