summaryrefslogtreecommitdiffstats
path: root/include/pt-sgi.h
diff options
context:
space:
mode:
authorKarel Zak2013-05-29 14:23:56 +0200
committerKarel Zak2013-09-16 16:46:57 +0200
commit5105f75f6765cf8de2770caf9ae0d3b4851ebd0e (patch)
tree6474068073dedd2b3627062537e484b39cc9cd7c /include/pt-sgi.h
parentfdisk: (sgi) use cpu_to_beXX() and beXX_to_cpu() (diff)
downloadkernel-qcow2-util-linux-5105f75f6765cf8de2770caf9ae0d3b4851ebd0e.tar.gz
kernel-qcow2-util-linux-5105f75f6765cf8de2770caf9ae0d3b4851ebd0e.tar.xz
kernel-qcow2-util-linux-5105f75f6765cf8de2770caf9ae0d3b4851ebd0e.zip
fdisk: (sgi) remove magic strings
Signed-off-by: Karel Zak <kzak@redhat.com>
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 */