diff options
author | Karel Zak | 2017-05-31 10:58:17 +0200 |
---|---|---|
committer | Karel Zak | 2017-05-31 10:58:17 +0200 |
commit | c71f5a568fa3de8bd1e89bb70cea102bc13a5b85 (patch) | |
tree | b2ad280c938a20cba4792271e4135afa5cd6d426 /disk-utils/cfdisk.c | |
parent | build-sys: prefer ncurses-config rather than pkg-config (diff) | |
download | kernel-qcow2-util-linux-c71f5a568fa3de8bd1e89bb70cea102bc13a5b85.tar.gz kernel-qcow2-util-linux-c71f5a568fa3de8bd1e89bb70cea102bc13a5b85.tar.xz kernel-qcow2-util-linux-c71f5a568fa3de8bd1e89bb70cea102bc13a5b85.zip |
cfdisk: fix compiler warning
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r-- | disk-utils/cfdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 72e96c582..37f998bab 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1471,7 +1471,7 @@ static int ui_menu_move(struct cfdisk *cf, int key) assert(cf); assert(cf->menu); - if (key == ERR) + if (key == (int) ERR) return 0; /* ignore errors */ m = cf->menu; @@ -1756,7 +1756,7 @@ static ssize_t ui_get_string(const char *prompt, defined(HAVE_LIBNCURSESW) && defined(HAVE_WIDECHAR) if (get_wch(&c) == ERR) { #else - if ((c = getch()) == ERR) { + if ((c = getch()) == (wint_t) ERR) { #endif if (ui_resize) { resize(); |