1
0
forked from pool/util-linux
util-linux/blkdiscard-BLKSSZGET-fills-in-an-int.patch
2013-11-05 11:09:54 +00:00

28 lines
851 B
Diff

Subject: [PATCH] blkdiscard: BLKSSZGET fills in an int, not a uint64
Message-ID: 1383435966-29337-1-git-send-email-tytso@mit.edu
Reported-by: Jason Cipriani <jason.cipriani@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
---
sys-utils/blkdiscard.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-utils/blkdiscard.c b/sys-utils/blkdiscard.c
index af9ed66..2ddcdb1 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[] = {
--
1.7.12.rc0.22.gcdd159b