summaryrefslogtreecommitdiffstats
path: root/fdisks/gpt.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/gpt.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/gpt.c')
-rw-r--r--fdisks/gpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/gpt.c b/fdisks/gpt.c
index 0dd8ebe13..ed8632993 100644
--- a/fdisks/gpt.c
+++ b/fdisks/gpt.c
@@ -1005,9 +1005,8 @@ done:
/*
* Initialize fdisk-specific variables - call once probing passes!
*/
-static void gpt_init(struct fdisk_context *cxt)
+static void gpt_init(struct fdisk_context *cxt __attribute__((__unused__)))
{
- cxt->disklabel = FDISK_DISKLABEL_GPT;
partitions = le32_to_cpu(pheader->npartition_entries);
}
@@ -1709,6 +1708,7 @@ struct fdisk_label *fdisk_new_gpt_label(struct fdisk_context *cxt)
/* initialize generic part of the driver */
lb = (struct fdisk_label *) gpt;
lb->name = "gpt";
+ lb->id = FDISK_DISKLABEL_GPT;
lb->op = &gpt_operations;
lb->parttypes = gpt_parttypes;
lb->nparttypes = ARRAY_SIZE(gpt_parttypes);