diff options
author | Sami Kerola | 2017-03-05 21:52:20 +0100 |
---|---|---|
committer | Karel Zak | 2017-03-13 14:48:04 +0100 |
commit | c308e2050f3b7cc08be64227644ce1020a27fdfe (patch) | |
tree | 9efe0572d5e3f63021d9c614b09c826c4ff50858 /disk-utils/cfdisk.c | |
parent | lib/colors: assert rathen than overflow [-Wnull-dereference] (diff) | |
download | kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.tar.gz kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.tar.xz kernel-qcow2-util-linux-c308e2050f3b7cc08be64227644ce1020a27fdfe.zip |
misc: stop mixing declarations and code
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r-- | disk-utils/cfdisk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index f06dad1c8..cb9f3421d 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -2092,6 +2092,8 @@ static int ui_create_label(struct cfdisk *cf) do { + int key; + if (refresh_menu) { ui_draw_menu(cf); ui_hint(_("Select a type to create a new label or press 'L' to load script file.")); @@ -2099,7 +2101,7 @@ static int ui_create_label(struct cfdisk *cf) refresh_menu = 0; } - int key = getch(); + key = getch(); if (ui_resize) ui_menu_resize(cf); |