summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-09 13:25:48 +0000
committerJim Meyering <jim@meyering.net>2003-04-09 13:25:48 +0000
commit242dabb9421616c9714bc56c2ca663640df2cda3 (patch)
tree206806e187d942520720346c098e1c17024aef80 /src
parent60334e21a886c164217f66e48c3df23057e0dc42 (diff)
downloadcoreutils-242dabb9421616c9714bc56c2ca663640df2cda3.tar.xz
(lines_split): Rename local, nlines -> n_lines.
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 00216d572..ed3ec302c 100644
--- a/src/split.c
+++ b/src/split.c
@@ -238,11 +238,11 @@ bytes_split (size_t n_bytes, char *buf, size_t bufsize)
while (n_read == bufsize);
}
-/* Split into pieces of exactly NLINES lines.
+/* Split into pieces of exactly N_LINES lines.
Use buffer BUF, whose size is BUFSIZE. */
static void
-lines_split (size_t nlines, char *buf, size_t bufsize)
+lines_split (size_t n_lines, char *buf, size_t bufsize)
{
size_t n_read;
char *bp, *bp_out, *eob;
@@ -272,7 +272,7 @@ lines_split (size_t nlines, char *buf, size_t bufsize)
}
++bp;
- if (++n >= nlines)
+ if (++n >= n_lines)
{
cwrite (new_file_flag, bp_out, bp - bp_out);
bp_out = bp;