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

@@ -128,7 +128,7 @@ uudecode(FILE *fp, FILE *outfp)
#define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) )
#define OUT_OF_RANGE(c) eprintf("character %c out of range: [%d-%d]", (c), 1 + ' ', 077 + ' ' + 1)
while ((len = agetline(&bufb, &n, fp)) != -1) {
while ((len = getline(&bufb, &n, fp)) != -1) {
p = bufb;
/* trim newlines */
if (len && bufb[len - 1] != '\n')
@@ -172,7 +172,7 @@ uudecode(FILE *fp, FILE *outfp)
eprintf("read error:");
}
/* check for end or fail */
len = agetline(&bufb, &n, fp);
len = getline(&bufb, &n, fp);
if (len < 3 || strncmp(bufb, "end", 3) != 0 || bufb[3] != '\n')
eprintf("invalid uudecode footer \"end\" not found\n");
free(bufb);