]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
blkdiscard: BLKSSZGET fills in an int, not a uint64
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Nov 2013 23:46:06 +0000 (19:46 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Nov 2013 13:58:47 +0000 (14:58 +0100)
Reported-by: Jason Cipriani <jason.cipriani@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
sys-utils/blkdiscard.c

index af9ed663059e5767a4bd50937203ee304710baa5..2ddcdb1b469e6704dc7893b16382ea6d1927f1f7 100644 (file)
@@ -70,8 +70,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 int main(int argc, char **argv)
 {
        char *path;
-       int c, fd, verbose = 0, secure = 0;
-       uint64_t end, blksize, secsize, range[2];
+       int c, fd, verbose = 0, secure = 0, secsize;
+       uint64_t end, blksize, range[2];
        struct stat sb;
 
        static const struct option longopts[] = {