From e52845281a16029d264b36c7c9a746a6cd70f268 Mon Sep 17 00:00:00 2001 From: sin Date: Tue, 15 Dec 2015 09:39:57 +0000 Subject: [PATCH] Fix warning in join(1) Spotted by Random832. --- join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/join.c b/join.c index 1a08927..4c68ad3 100644 --- a/join.c +++ b/join.c @@ -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