[PATCH 2/4] maint: avoid shadowing warning

Jim Meyering meyering at redhat.com
Mon Mar 7 14:44:50 UTC 2011


* parted/parted.c (do_mkpart): Rename inner added_ok to add_ok.
---
 parted/parted.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/parted/parted.c b/parted/parted.c
index 9b4c1f2..18c7a30 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1041,11 +1041,11 @@ do_mkpartfs (PedDevice** dev)
                 ped_exception_leave_all();

                 PedConstraint *constraint_any = ped_constraint_any (*dev);
-                bool added_ok = ped_disk_add_partition (disk, part,
+                bool add_ok = ped_disk_add_partition (disk, part,
                                                         constraint_any);
                 ped_constraint_destroy (constraint_any);

-                if (!added_ok)
+                if (!add_ok)
                         goto error_remove_part;

                 if (!ped_geometry_test_sector_inside(range_start, part->geom.start) ||
--
1.7.4.1.299.ga459d




More information about the parted-devel mailing list