summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisksunlabel.c
diff options
context:
space:
mode:
authorKarel Zak2012-12-11 18:30:03 +0100
committerKarel Zak2013-03-11 12:47:29 +0100
commit53b422ab169dc3be8e8eee4ccb5f8e67bff1a122 (patch)
tree09dbb4e6826cb2b8470fc9165fd5373f242885fd /fdisks/fdisksunlabel.c
parentlibfdisk: add fdisk_label to driver API (diff)
downloadkernel-qcow2-util-linux-53b422ab169dc3be8e8eee4ccb5f8e67bff1a122.tar.gz
kernel-qcow2-util-linux-53b422ab169dc3be8e8eee4ccb5f8e67bff1a122.tar.xz
kernel-qcow2-util-linux-53b422ab169dc3be8e8eee4ccb5f8e67bff1a122.zip
libfdisk: move label identifier to label struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisksunlabel.c')
-rw-r--r--fdisks/fdisksunlabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdisksunlabel.c b/fdisks/fdisksunlabel.c
index 28942e408..eb56cda8b 100644
--- a/fdisks/fdisksunlabel.c
+++ b/fdisks/fdisksunlabel.c
@@ -81,9 +81,8 @@ static void set_sun_partition(struct fdisk_context *cxt,
print_partition_size(cxt, i + 1, start, stop, sysid);
}
-static void init(struct fdisk_context *cxt)
+static void init(struct fdisk_context *cxt __attribute__((__unused__)))
{
- cxt->disklabel = FDISK_DISKLABEL_SUN;
partitions = SUN_NUM_PARTITIONS;
}
@@ -738,6 +737,7 @@ struct fdisk_label *fdisk_new_sun_label(struct fdisk_context *cxt)
/* initialize generic part of the driver */
lb = (struct fdisk_label *) sun;
lb->name = "sun";
+ lb->id = FDISK_DISKLABEL_SUN;
lb->op = &sun_operations;
lb->parttypes = sun_parttypes;
lb->nparttypes = ARRAY_SIZE(sun_parttypes);