From 0e7d2d7c63249fb13f119bbc91909c745722c2c8 Mon Sep 17 00:00:00 2001 From: Michael Piszczek Date: Thu, 8 Apr 2021 04:51:02 -0400 Subject: Fix compiler error comparison is always true (#434) Changed variable type for getopt() to fix compiler warning when compiling on arm Signed-off-by: mpiszczek Reviewed-by: John Levon --- samples/gpio-pci-idio-16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/gpio-pci-idio-16.c') diff --git a/samples/gpio-pci-idio-16.c b/samples/gpio-pci-idio-16.c index 1efc291..6c4206f 100644 --- a/samples/gpio-pci-idio-16.c +++ b/samples/gpio-pci-idio-16.c @@ -141,7 +141,7 @@ main(int argc, char *argv[]) { int ret; bool verbose = false; - char opt; + int opt; struct sigaction act = { .sa_handler = _sa_handler }; vfu_ctx_t *vfu_ctx; size_t migr_regs_size = vfu_get_migr_register_area_size(); -- cgit v1.1