remove agetline
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../text.h"
|
||||
#include "../util.h"
|
||||
|
||||
ssize_t
|
||||
agetline(char **p, size_t *size, FILE *fp)
|
||||
{
|
||||
return getline(p, size, fp);
|
||||
}
|
@@ -51,7 +51,7 @@ cryptcheck(char *sumfile, int argc, char *argv[],
|
||||
else if (!(cfp = fopen(sumfile, "r")))
|
||||
eprintf("fopen %s:", sumfile);
|
||||
|
||||
while (agetline(&line, &bufsiz, cfp) != -1) {
|
||||
while (getline(&line, &bufsiz, cfp) != -1) {
|
||||
if (!(file = strstr(line, " "))) {
|
||||
formatsucks++;
|
||||
continue;
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user