diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2008-06-12 04:37:37 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2008-06-12 04:37:37 +0000 |
commit | 26371d590ec639b1fd7c85896faee81716564d99 (patch) | |
tree | a2d8f19c2decc3e2f083e93b10f42b47b627fac8 /sys/sys/apm.h | |
parent | bda386db88be4959cf16d056df25ca75bf02918f (diff) | |
download | src-26371d590ec639b1fd7c85896faee81716564d99.tar.gz src-26371d590ec639b1fd7c85896faee81716564d99.zip |
Define APM_ENT_NAMELEN and APM_ENT_TYPELEN for general use.
Notes
Notes:
svn path=/head/; revision=179747
Diffstat (limited to 'sys/sys/apm.h')
-rw-r--r-- | sys/sys/apm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/apm.h b/sys/sys/apm.h index f93ed833ee9b..5fbfa65bbb04 100644 --- a/sys/sys/apm.h +++ b/sys/sys/apm.h @@ -37,6 +37,9 @@ struct apm_ddr { uint32_t ddr_blkcount; }; +#define APM_ENT_NAMELEN 32 +#define APM_ENT_TYPELEN 32 + /* Partition Map Entry Record. */ struct apm_ent { uint16_t ent_sig; @@ -45,8 +48,8 @@ struct apm_ent { uint32_t ent_pmblkcnt; uint32_t ent_start; uint32_t ent_size; - char ent_name[32]; - char ent_type[32]; + char ent_name[APM_ENT_NAMELEN]; + char ent_type[APM_ENT_TYPELEN]; }; #define APM_ENT_TYPE_SELF "Apple_partition_map" |