]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: fix compiler warning
authorKarel Zak <kzak@redhat.com>
Wed, 31 May 2017 08:58:17 +0000 (10:58 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 May 2017 08:58:17 +0000 (10:58 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index 72e96c582084b3d4aaf5373e20ba94b03c2dddf0..37f998babb742dea1e7200b89fd97da683481373 100644 (file)
@@ -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();