diff options
author | Michael Piszczek <mpiszczek@ddn.com> | 2021-04-08 04:51:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 09:51:02 +0100 |
commit | 0e7d2d7c63249fb13f119bbc91909c745722c2c8 (patch) | |
tree | 3d76fc47abf35b5bb5bc2b16687f7f75721f4f28 /samples/gpio-pci-idio-16.c | |
parent | 293e1a92ffdbd794c3e23f528589e532b9b1e73a (diff) | |
download | libvfio-user-0e7d2d7c63249fb13f119bbc91909c745722c2c8.zip libvfio-user-0e7d2d7c63249fb13f119bbc91909c745722c2c8.tar.gz libvfio-user-0e7d2d7c63249fb13f119bbc91909c745722c2c8.tar.bz2 |
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 <mpiszczek@ddn.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'samples/gpio-pci-idio-16.c')
-rw-r--r-- | samples/gpio-pci-idio-16.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |