[parted-devel] [PATCH] parted/ui.c: Use correct enum type for disk flags

Will Newton will.newton at gmail.com
Fri Jul 21 13:22:19 UTC 2017


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 <willn at resin.io>
---
 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




More information about the parted-devel mailing list