From: Thomas Weißschuh Date: Wed, 11 Oct 2023 05:20:43 +0000 (+0200) Subject: blkpr: store return value of getopt_long in int X-Git-Tag: v2.40-rc1~205^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95d33617cf070a803bef2b056ddf7ed75f50170d;p=thirdparty%2Futil-linux.git blkpr: store return value of getopt_long in int getopt_long returns an int. Don't try to store it in a char. See #2538. Signed-off-by: Thomas Weißschuh --- 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;