diff options
author | Karel Zak <kzak@redhat.com> | 2013-05-29 14:23:56 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2013-09-16 16:46:57 +0200 |
commit | 5105f75f6765cf8de2770caf9ae0d3b4851ebd0e (patch) | |
tree | 6474068073dedd2b3627062537e484b39cc9cd7c /include | |
parent | d83a4c5dfd05597874d851aec81612c82dc9e0b9 (diff) | |
download | util-linux-5105f75f6765cf8de2770caf9ae0d3b4851ebd0e.tar.gz |
fdisk: (sgi) remove magic strings
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/pt-sgi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pt-sgi.h b/include/pt-sgi.h index ec48b7e3..aef33859 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 */ |