OSDN Git Service

dos: adjust variable declarations
authorPetr Uzel <petr.uzel@suse.cz>
Wed, 26 Aug 2009 10:29:46 +0000 (12:29 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 26 Aug 2009 14:26:39 +0000 (16:26 +0200)
* libparted/labels/dos.c (write_ext_table): Move declaration of S down
to just before its first use.
Fix alignment of lba_offset declaration.

libparted/labels/dos.c

index 648c79c..a3487a0 100644 (file)
@@ -1030,8 +1030,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);
@@ -1039,6 +1038,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;