From: Theodore Ts'o Date: Sat, 2 Nov 2013 23:46:06 +0000 (-0400) Subject: blkdiscard: BLKSSZGET fills in an int, not a uint64 X-Git-Tag: v2.25-rc1~779 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88839459571a3e138bbf707b865d3d84de28e496;p=thirdparty%2Futil-linux.git blkdiscard: BLKSSZGET fills in an int, not a uint64 Reported-by: Jason Cipriani Signed-off-by: "Theodore Ts'o" --- diff --git a/sys-utils/blkdiscard.c b/sys-utils/blkdiscard.c index af9ed66305..2ddcdb1b46 100644 --- a/sys-utils/blkdiscard.c +++ b/sys-utils/blkdiscard.c @@ -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[] = {