commit e52845281a16029d264b36c7c9a746a6cd70f268
parent fdf9ab9b2d93199faea6a9e4e6e38da5d7e7a0d3
Author: sin <sin@2f30.org>
Date: Tue, 15 Dec 2015 09:39:57 +0000
Fix warning in join(1)
Spotted by Random832.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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