summaryrefslogtreecommitdiff
path: root/parted
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-03-07 15:44:50 +0100
committerJim Meyering <meyering@redhat.com>2011-03-16 19:36:33 +0100
commite2758b3b0b36c6dbf5037c11c2b55c398bdba47a (patch)
treeac5b0d2330cb1e49ae0b25d19582e9883c966daa /parted
parentbd2e00295481481e2e7adfb0f4ccc0ca73a8de31 (diff)
downloadparted-e2758b3b0b36c6dbf5037c11c2b55c398bdba47a.tar.gz
maint: avoid shadowing warning
* parted/parted.c (do_mkpart): Rename inner added_ok to add_ok.
Diffstat (limited to 'parted')
-rw-r--r--parted/parted.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parted/parted.c b/parted/parted.c
index c4cf959..4427f0f 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) ||