bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint: correct two comments in gpt.c


From: Jim Meyering
Subject: [PATCH] maint: correct two comments in gpt.c
Date: Wed, 02 Nov 2011 21:15:12 +0100

FYI,

>From e548b601fb6b6e0235f56da88e744f63c5d4a331 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sat, 29 Oct 2011 22:34:14 +0200
Subject: [PATCH] maint: correct two comments in gpt.c

* libparted/labels/gpt.c (gpt_read_headers): Correct the comment.
(_header_is_valid): Fix a harmless typo.
---
 libparted/labels/gpt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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,
--
1.7.8.rc0.32.g87bf9



reply via email to

[Prev in Thread] Current Thread [Next in Thread]