From d065ff00a36b7244842f743372099837bc61328b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 11 Oct 2023 07:20:43 +0200 Subject: [PATCH] blkpr: store return value of getopt_long in int MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit getopt_long returns an int. Don't try to store it in a char. See #2538. Signed-off-by: Thomas Weißschuh --- sys-utils/blkpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/blkpr.c b/sys-utils/blkpr.c index e9b50ccd64..90763db402 100644 --- a/sys-utils/blkpr.c +++ b/sys-utils/blkpr.c @@ -242,7 +242,7 @@ static void __attribute__((__noreturn__)) usage(void) int main(int argc, char **argv) { - char c; + int c; char *path; uint64_t key = 0, oldkey = 0; int command = -1, type = -1, flag = 0; -- 2.47.2