summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-05-07 03:09:55 +0000
committerJim Meyering <jim@meyering.net>1993-05-07 03:09:55 +0000
commit9a96f7c461a5c7c53639d3f84bd446a6959aa1a9 (patch)
treedf4468282d2a175bdfabcb9001f30b18f9686329 /src/csplit.c
parentf7999d7584ad787f4e7432b7ad76cc3486bc7b0b (diff)
downloadcoreutils-9a96f7c461a5c7c53639d3f84bd446a6959aa1a9.tar.xz
merge with 1.5
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/csplit.c b/src/csplit.c
index e5b6ed68d..eaea8c314 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -599,7 +599,6 @@ static struct cstring *
remove_line ()
{
struct cstring *line; /* Return value. */
- unsigned line_got; /* Number of the line retrieved. */
struct line *l; /* For convenience. */
if (head == NULL && !load_buffer ())
@@ -608,7 +607,7 @@ remove_line ()
if (current_line < head->first_available)
current_line = head->first_available;
- line_got = head->first_available++;
+ ++(head->first_available);
l = head->curr_line;
@@ -1076,13 +1075,11 @@ string_to_number (result, num)
/* Check if there is a numeric offset after a regular expression.
STR is the entire command line argument.
- ARGNUM is the index in ARGV of STR.
P is the control record for this regular expression.
NUM is the numeric part of STR. */
static void
-check_for_offset (argnum, p, str, num)
- int argnum;
+check_for_offset (p, str, num)
struct control *p;
char *str;
char *num;
@@ -1163,7 +1160,7 @@ extract_regexp (argnum, ignore, str)
}
if (closing_delim[1])
- check_for_offset (argnum, p, str, closing_delim + 1);
+ check_for_offset (p, str, closing_delim + 1);
return p;
}