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

2
nl.c
View File

@@ -69,7 +69,7 @@ nl(FILE *fp)
long n = 0;
size_t size = 0;
while (agetline(&buf, &size, fp) != -1) {
while (getline(&buf, &size, fp) != -1) {
if ((mode == 'a')
|| (mode == 'p'
&& !regexec(&preg, buf, 0, NULL, 0))