diff options
author | Jim Meyering <jim@meyering.net> | 2005-08-12 07:16:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-08-12 07:16:25 +0000 |
commit | 0b08c3815214197faf9baf5cd77ddac6ae6f7c1d (patch) | |
tree | 12bcef60191f67fb8184bd12adaa0bfda5c40ce1 /src/join.c | |
parent | 6f7fd1a8667c45df0207fef3399b6167dbd283f3 (diff) | |
download | coreutils-0b08c3815214197faf9baf5cd77ddac6ae6f7c1d.tar.xz |
Cosmetic: use X2NREALLOC (only two arguments) rather than x2nrealloc (with three).
Diffstat (limited to 'src/join.c')
-rw-r--r-- | src/join.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/join.c b/src/join.c index 7630ae643..87f6c77cd 100644 --- a/src/join.c +++ b/src/join.c @@ -188,8 +188,7 @@ extract_field (struct line *line, char *field, size_t len) { if (line->nfields >= line->nfields_allocated) { - line->fields = x2nrealloc (line->fields, &line->nfields_allocated, - sizeof (struct field)); + line->fields = X2NREALLOC (line->fields, &line->nfields_allocated); } line->fields[line->nfields].beg = field; line->fields[line->nfields].len = len; @@ -283,7 +282,7 @@ static bool getseq (FILE *fp, struct seq *seq) { if (seq->count == seq->alloc) - seq->lines = x2nrealloc (seq->lines, &seq->alloc, sizeof *seq->lines); + seq->lines = X2NREALLOC (seq->lines, &seq->alloc); if (get_line (fp, &seq->lines[seq->count])) { |