diff options
| author | Karel Zak <kzak@redhat.com> | 2014-05-13 09:58:58 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2014-05-13 09:58:58 +0200 |
| commit | a08fa9ab575b3080b50aae904c7b8fc215ed2429 (patch) | |
| tree | 68536cc85eb8b339fef3fa5df98a44d8e4416d04 /disk-utils/cfdisk.c | |
| parent | 293eef71eaf92adca160fa2be18c92240c586f58 (diff) | |
| download | util-linux-a08fa9ab575b3080b50aae904c7b8fc215ed2429.tar.gz | |
cfdisk: fix compiler warning [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
| -rw-r--r-- | disk-utils/cfdisk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 9d198e25ec..f3d665afd0 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1178,7 +1178,6 @@ static ssize_t ui_get_string(struct cfdisk *cf, const char *prompt, { size_t cells = 0; ssize_t i = 0, rc = -1; - wint_t c; int ln = MENU_START_LINE, cl = 1; assert(cf); @@ -1212,8 +1211,10 @@ static ssize_t ui_get_string(struct cfdisk *cf, const char *prompt, while (1) { #if !defined(HAVE_SLCURSES_H) && !defined(HAVE_SLANG_SLCURSES_H) && \ defined(HAVE_LIBNCURSESW) && defined(HAVE_WIDECHAR) + wint_t c; if (get_wch(&c) == ERR) { #else + int c; if ((c = getch()) == ERR) { #endif if (!isatty(STDIN_FILENO)) |
