* 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 <[email protected]>
---
 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: [email protected]
Lihovarská 1060/12                          http://www.suse.cz
190 00 Prague 9, CR                             

Attachment: pgpoKeVIvP5Pk.pgp
Description: PGP signature

_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to