3
0
forked from pool/util-linux
util-linux/blkdiscard-BLKSSZGET-fills-in-an-int.patch
Stephan Kulow 0636dfed64 Accepting request 205813 from Base:System
- blkdiscard-BLKSSZGET-fills-in-an-int.patch: Fix type mismatch in
  blkdiscard (forwarded request 205643 from AndreasSchwab)

OBS-URL: https://build.opensuse.org/request/show/205813
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/util-linux?expand=0&rev=171
2013-11-05 12:53:50 +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