forked from pool/util-linux
810cf97189
- blkdiscard-BLKSSZGET-fills-in-an-int.patch: Fix type mismatch in blkdiscard OBS-URL: https://build.opensuse.org/request/show/205643 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=192
28 lines
851 B
Diff
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
|
|
|