summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-09-01 01:15:22 +0000
committermarcel <marcel@FreeBSD.org>2005-09-01 01:15:22 +0000
commit9528d8e44bf53c69b905be49f2a2f75836341753 (patch)
tree0150608178d9c43bffa711f20d69a7e8d08c2897 /sbin
parent4b04d92787756a389e9e3085ebce15a3fdc3660e (diff)
downloadFreeBSD-src-9528d8e44bf53c69b905be49f2a2f75836341753.zip
FreeBSD-src-9528d8e44bf53c69b905be49f2a2f75836341753.tar.gz
Add a comment before the statement that is responsible for the
removal of the GPT entry. There's a bit of code around that one statement that it's good to have it stand out a bit more.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/gpt/remove.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/gpt/remove.c b/sbin/gpt/remove.c
index 5a6f83f..98b1d4d 100644
--- a/sbin/gpt/remove.c
+++ b/sbin/gpt/remove.c
@@ -107,6 +107,8 @@ rem(int fd)
if (!uuid_is_nil(&type, NULL) &&
!uuid_equal(&type, &uuid, NULL))
continue;
+
+ /* Remove the entry by clearing the partition type. */
uuid_create_nil(&ent->ent_type, NULL);
hdr->hdr_crc_table = htole32(crc32(tbl->map_data,
OpenPOWER on IntegriCloud