remove agetline

This commit is contained in:
Evan Gates
2014-11-18 12:49:30 -08:00
committed by sin
parent cca0522872
commit 84b08427a1
14 changed files with 13 additions and 28 deletions

View File

@@ -13,7 +13,7 @@ getlines(FILE *fp, struct linebuf *b)
size_t size = 0, linelen;
ssize_t len;
while ((len = agetline(&line, &size, fp)) != -1) {
while ((len = getline(&line, &size, fp)) != -1) {
if (++b->nlines > b->capacity) {
b->capacity += 512;
nline = erealloc(b->lines, b->capacity * sizeof(*b->lines));