In command_line_get_disk_flag we are manipulating disk flags not partition flags so use the correct enum type.
Signed-off-by: Will Newton <[email protected]> --- parted/ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parted/ui.c b/parted/ui.c index 752860b..0134080 100644 --- a/parted/ui.c +++ b/parted/ui.c @@ -1138,7 +1138,7 @@ command_line_get_disk_flag (const char* prompt, const PedDisk* disk, PedDiskFlag* flag) { StrList* opts = NULL; - PedPartitionFlag walk = 0; + PedDiskFlag walk = 0; char* flag_name; while ( (walk = ped_disk_flag_next (walk)) ) { -- 2.9.4

