projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73daf89
)
(next_file_name): Don't reuse X as an index.
author
Jim Meyering
<jim@meyering.net>
Fri, 14 Apr 1995 04:29:41 +0000
(
04:29
+0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 14 Apr 1995 04:29:41 +0000
(
04:29
+0000)
Declare new variable I instead.
src/split.c
patch
|
blob
|
history
diff --git
a/src/split.c
b/src/split.c
index
e1e3762
..
421ced9
100644
(file)
--- a/
src/split.c
+++ b/
src/split.c
@@
-555,6
+555,7
@@
next_file_name ()
{
int x;
char *ne;
+ unsigned int i;
outfile_count++;
if (outfile_count < outfile_name_limit)
@@
-574,7
+575,7
@@
next_file_name ()
outfile_name_limit *= 26;
outfile_name_generation++;
*outfile_mid++ = 'z';
- for (
x = 0; x <= outfile_name_generation; x
++)
- outfile_mid[
x
] = 'a';
+ for (
i = 0; i <= outfile_name_generation; i
++)
+ outfile_mid[
i
] = 'a';
outfile_end += 2;
}