Fix warning in join(1)

Spotted by Random832.
This commit is contained in:
sin 2015-12-15 09:39:57 +00:00
parent fdf9ab9b2d
commit e52845281a

2
join.c
View File

@ -263,7 +263,7 @@ addtospan(struct span *sp, FILE *fp, int reset)
char *newl = NULL;
size_t len, size = 0;
if ((len = getline(&newl, &size, fp)) == -1) {
if ((len = getline(&newl, &size, fp)) == (size_t)-1) {
if (ferror(fp))
eprintf("getline:");
else