summaryrefslogtreecommitdiffstats
path: root/include/pt-sgi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pt-sgi.h')
-rw-r--r--include/pt-sgi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pt-sgi.h b/include/pt-sgi.h
index ec48b7e39..aef33859e 100644
--- a/include/pt-sgi.h
+++ b/include/pt-sgi.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#define SGI_MAXPARTITIONS 16
+#define SGI_MAXVOLUMES 15
/* partition types */
enum {
@@ -64,7 +65,7 @@ struct sgi_disklabel {
unsigned char name[8]; /* name of volume */
uint32_t block_num; /* logical block number */
uint32_t num_bytes; /* how big, in bytes */
- } __attribute__((packed)) volume[15];
+ } __attribute__((packed)) volume[SGI_MAXVOLUMES];
struct sgi_partition {
uint32_t num_blocks; /* size in logical blocks */