]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mygetline: fix type for return value of read(2)
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 7 Mar 2023 09:59:59 +0000 (10:59 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 7 Mar 2023 09:59:59 +0000 (10:59 +0100)
src/mygetline.c

index 67abb4ff6b3b21252757a19a3fba9841e392b046..8d99765ae7a5e5155b22f5ea6d2f6c21a032f8b2 100644 (file)
@@ -33,7 +33,8 @@
 
 static char *mygetuntil(int fd, int eof)
 {
-       size_t i = 0, res, buf_size = BUFSIZE;  /* initial buffer size */
+       size_t i = 0, buf_size = BUFSIZE;  /* initial buffer size */
+       ssize_t res;
        char *buf, ch;
 
        buf = xmalloc(buf_size);