]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: fix int vs ssize_t warnings from Coverity
authorTheodore Ts'o <tytso@mit.edu>
Thu, 22 May 2025 05:24:52 +0000 (01:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 May 2025 05:24:52 +0000 (01:24 -0400)
Addresses-Coverity-Bug: 1605231
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/logfile.c

index 9d79eed2cede3321a1ecc744ae5d58dc28c33616..abb7e4389aa2eb970e741b322de482ba540666cd 100644 (file)
@@ -183,12 +183,12 @@ static void expand_logfn(e2fsck_t ctx, const char *log_fn, struct string *s)
        }
 }
 
-static int     outbufsize;
+static size_t  outbufsize;
 static void    *outbuf;
 
 static int do_read(int fd)
 {
-       int     c;
+       ssize_t         c;
        char            *n;
        char    buffer[4096];