[parted-devel] [PATCH 3/3] dos.c: Fix variable declarations
Petr Uzel
petr.uzel at suse.cz
Wed Aug 26 10:29:46 UTC 2009
* libparted/labels/dos.c (write_ext_table): declare s just before
the first usage
* libparted/labels/dos.c (write_ext_table): fix alignment of
lba_offset declaration
Signed-off-by: Petr Uzel <petr.uzel at suse.cz>
---
libparted/labels/dos.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libparted/labels/dos.c b/libparted/labels/dos.c
index 5089de9..e0867ac 100644
--- a/libparted/labels/dos.c
+++ b/libparted/labels/dos.c
@@ -1029,8 +1029,7 @@ write_ext_table (const PedDisk* disk,
PedSector sector, const PedPartition* logical)
{
PedPartition* part;
- PedSector lba_offset;
- void* s;
+ PedSector lba_offset;
PED_ASSERT (disk != NULL, return 0);
PED_ASSERT (ped_disk_extended_partition (disk) != NULL, return 0);
@@ -1038,6 +1037,7 @@ write_ext_table (const PedDisk* disk,
lba_offset = ped_disk_extended_partition (disk)->geom.start;
+ void* s;
if (!ptt_read_sector (disk->dev, sector, &s))
return 0;
--
1.6.3.3
--
Best regards / s pozdravem
Petr Uzel, openSUSE Community Multiplier Team
-----------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: puzel at suse.cz
Lihovarská 1060/12 http://www.suse.cz
190 00 Prague 9, CR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20090826/975c3e83/attachment.pgp>
More information about the parted-devel
mailing list