aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gpt.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-11-10 20:13:58 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-11-10 20:13:58 +0000
commitc7c8cf8b2e345f759eb4a40835aa9e077c11e142 (patch)
treee6b2e169d7409b3967e904f3b0c4a485033b7317 /sys/sys/gpt.h
parentde0acbf78fea31660f19c7dec7ae8b590033d5d3 (diff)
downloadsrc-c7c8cf8b2e345f759eb4a40835aa9e077c11e142.tar.gz
src-c7c8cf8b2e345f759eb4a40835aa9e077c11e142.zip
o Include <sys/uuid.h>. This avoids that applications such as
gpt(8) have to include both <sys/uuid.h> and <uuid.h> only because they include <sys/gpt.h> before <uuid.h>. o Drop the triple bang in the unicode comment in favor of adding '-16' to make it explicit that the unicode characters are 16-bit. The fact that we use short as the type of the array does give it away; but only to the careful reader.
Notes
Notes: svn path=/head/; revision=106739
Diffstat (limited to 'sys/sys/gpt.h')
-rw-r--r--sys/sys/gpt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/gpt.h b/sys/sys/gpt.h
index ee20ce9fe989..b5f9a4038fcb 100644
--- a/sys/sys/gpt.h
+++ b/sys/sys/gpt.h
@@ -29,6 +29,8 @@
#ifndef _SYS_GPT_H_
#define _SYS_GPT_H_
+#include <sys/uuid.h>
+
struct gpt_hdr {
char hdr_sig[8];
#define GPT_HDR_SIG "EFI PART"
@@ -63,7 +65,7 @@ struct gpt_ent {
uint64_t ent_lba_end;
uint64_t ent_attr;
#define GPT_ENT_ATTR_PLATFORM (1ULL << 0)
- short ent_name[36]; /* UNICODE!!! */
+ short ent_name[36]; /* UNICODE-16. */
};
#define GPT_ENT_TYPE_UNUSED \