summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-08 09:50:50 +0000
committerJim Meyering <jim@meyering.net>2003-04-08 09:50:50 +0000
commita7641fc8e85199b463c8e342ce4e646199dcf696 (patch)
tree445ec76c0e89f551125bfc69469eae3ebfb7dfe5 /src/split.c
parent7eb9262da9441c027eea8cf444cd492dada4afdc (diff)
downloadcoreutils-a7641fc8e85199b463c8e342ce4e646199dcf696.tar.xz
(main): Rename local variable: s/accum/n_units/.
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/split.c b/src/split.c
index 6b0e39f0b..84b338943 100644
--- a/src/split.c
+++ b/src/split.c
@@ -354,7 +354,7 @@ main (int argc, char **argv)
} split_type = type_undef;
size_t in_blk_size; /* optimal block size of input file device */
char *buf; /* file i/o buffer */
- size_t accum = 0;
+ size_t n_units = 0;
int c;
int digits_optind = 0;
@@ -408,7 +408,7 @@ main (int argc, char **argv)
error (0, 0, _("%s: invalid number of bytes"), optarg);
usage (EXIT_FAILURE);
}
- accum = /* FIXME: */ (int) tmp_long;
+ n_units = /* FIXME: */ (int) tmp_long;
break;
case 'l':
@@ -421,7 +421,7 @@ main (int argc, char **argv)
error (0, 0, _("%s: invalid number of lines"), optarg);
usage (EXIT_FAILURE);
}
- accum = /* FIXME */ (int) tmp_long;
+ n_units = /* FIXME */ (int) tmp_long;
break;
case 'C':
@@ -434,7 +434,7 @@ main (int argc, char **argv)
error (0, 0, _("%s: invalid number of bytes"), optarg);
usage (EXIT_FAILURE);
}
- accum = /* FIXME */ (int) tmp_long;
+ n_units = /* FIXME */ (int) tmp_long;
break;
case '0':
@@ -450,10 +450,10 @@ main (int argc, char **argv)
if (split_type != type_undef && split_type != type_digits)
FAIL_ONLY_ONE_WAY ();
if (digits_optind != 0 && digits_optind != this_optind)
- accum = 0; /* More than one number given; ignore other. */
+ n_units = 0; /* More than one number given; ignore other. */
digits_optind = this_optind;
split_type = type_digits;
- accum = accum * 10 + c - '0';
+ n_units = n_units * 10 + c - '0';
break;
case_GETOPT_HELP_CHAR;
@@ -467,7 +467,8 @@ main (int argc, char **argv)
if (digits_optind && 200112 <= posix2_version ())
{
- error (0, 0, _("`-%d' option is obsolete; use `-l %d'"), accum, accum);
+ error (0, 0, _("`-%d' option is obsolete; use `-l %d'"),
+ n_units, n_units);
usage (EXIT_FAILURE);
}
@@ -475,15 +476,15 @@ main (int argc, char **argv)
if (split_type == type_undef)
{
split_type = type_lines;
- accum = 1000;
+ n_units = 1000;
}
- if (accum < 1)
+ if (n_units < 1)
{
error (0, 0, _("invalid number"));
usage (EXIT_FAILURE);
}
- num = accum;
+ num = n_units;
/* Get out the filename arguments. */