summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/partsun.c6
-rw-r--r--src/sun.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 6545b56..b6ddce5 100644
--- a/src/partsun.c
+++ b/src/partsun.c
@@ -119,7 +119,7 @@ static unsigned int get_part_type_sun(const partition_t *partition)
static int get_geometry_from_sunmbr(const unsigned char *buffer, const int verbose, CHSgeometry_t *geometry)
{
- const sun_partition *sunlabel=(const sun_partition*)buffer;
+ const sun_disklabel *sunlabel=(const sun_disklabel*)buffer;
if(verbose>1)
{
log_trace("get_geometry_from_sunmbr\n");
@@ -138,11 +138,11 @@ static int get_geometry_from_sunmbr(const unsigned char *buffer, const int verbo
static list_part_t *read_part_sun(disk_t *disk_car, const int verbose, const int saveheader)
{
unsigned int i;
- sun_partition *sunlabel;
+ sun_disklabel *sunlabel;
list_part_t *new_list_part=NULL;
unsigned char *buffer=(unsigned char *)MALLOC(disk_car->sector_size);
screen_buffer_reset();
- sunlabel=(sun_partition*)buffer;
+ sunlabel=(sun_disklabel*)buffer;
if(disk_car->pread(disk_car, buffer, DEFAULT_SECTOR_SIZE, (uint64_t)0) != DEFAULT_SECTOR_SIZE)
{
screen_buffer_add( msg_PART_RD_ERR);
diff --git a/src/sun.h b/src/sun.h
index 11a2255..6bd1f60 100644
--- a/src/sun.h
+++ b/src/sun.h
@@ -49,7 +49,7 @@ typedef struct {
} partitions[8];
uint16_t magic; /* Magic number */
uint16_t csum; /* Label xor'd checksum */
-} sun_partition;
+} sun_disklabel;
#define SUN_PARTITION_I386_SIZE 512