[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Wed Nov 2 20:15:22 UTC 2011


 libparted/labels/gpt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e548b601fb6b6e0235f56da88e744f63c5d4a331
Author: Jim Meyering <meyering at redhat.com>
Date:   Sat Oct 29 22:34:14 2011 +0200

    maint: correct two comments in gpt.c
    
    * libparted/labels/gpt.c (gpt_read_headers): Correct the comment.
    (_header_is_valid): Fix a harmless typo.

diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c
index f2bda41..4c5f378 100644
--- a/libparted/labels/gpt.c
+++ b/libparted/labels/gpt.c
@@ -643,7 +643,7 @@ _header_is_valid (PedDisk const *disk, GuidPartitionTableHeader_t *gpt,
 
   /* The SizeOfPartitionEntry must be a multiple of 8 and
      no smaller than the size of the PartitionEntry structure.
-     We also require that be no larger than 1/16th of UINT32_MAX,
+     We also require that it be no larger than 1/16th of UINT32_MAX,
      as an additional sanity check.  */
   uint32_t pe_size = PED_LE32_TO_CPU (gpt->SizeOfPartitionEntry);
   if (pe_size % 8 != 0
@@ -837,7 +837,7 @@ _parse_part_entry (PedDisk *disk, GuidPartitionEntry_t *pte)
    Return 1 if any read fails.
    Upon successful verification of the primary GPT, set *PRIMARY_GPT, else NULL.
    Upon successful verification of the backup GPT, set *BACKUP_GPT, else NULL.
-   If we've set *BACKUP_GPT to non-NULL, set *BACKUP_LBA to the sector
+   If we've set *BACKUP_GPT to non-NULL, set *BACKUP_SECTOR_NUM_P to the sector
    number in which it was found.  */
 static int
 gpt_read_headers (PedDisk const *disk,



More information about the Parted-commits mailing list