summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskmaclabel.c
diff options
context:
space:
mode:
authorKarel Zak2012-12-11 18:04:25 +0100
committerKarel Zak2013-03-11 12:47:29 +0100
commit8a95621d30c4e4c3e279246f80ef4aeed4f5d71c (patch)
treebf7beca183e58ed7e4c358acd9072007a31a12cc /fdisks/fdiskmaclabel.c
parentlibfdisk: improve label deinitialization (diff)
downloadkernel-qcow2-util-linux-8a95621d30c4e4c3e279246f80ef4aeed4f5d71c.tar.gz
kernel-qcow2-util-linux-8a95621d30c4e4c3e279246f80ef4aeed4f5d71c.tar.xz
kernel-qcow2-util-linux-8a95621d30c4e4c3e279246f80ef4aeed4f5d71c.zip
libfdisk: add fdisk_label to driver API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskmaclabel.c')
-rw-r--r--fdisks/fdiskmaclabel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/fdisks/fdiskmaclabel.c b/fdisks/fdiskmaclabel.c
index f15b802cc..fe989caab 100644
--- a/fdisks/fdiskmaclabel.c
+++ b/fdisks/fdiskmaclabel.c
@@ -57,7 +57,8 @@ mac_nolabel(struct fdisk_context *cxt)
}
static int
-mac_probe_label(struct fdisk_context *cxt)
+mac_probe_label(struct fdisk_context *cxt,
+ struct fdisk_label *lb __attribute__((__unused__)))
{
struct mac_partition *maclabel = (struct mac_partition *) cxt->firstsector;
@@ -92,9 +93,10 @@ IS_MAC:
}
static int mac_add_partition(
- struct fdisk_context *cxt __attribute__ ((__unused__)),
- int partnum __attribute__ ((__unused__)),
- struct fdisk_parttype *t __attribute__ ((__unused__)))
+ struct fdisk_context *cxt __attribute__ ((__unused__)),
+ struct fdisk_label *lb __attribute__((__unused__)),
+ int partnum __attribute__ ((__unused__)),
+ struct fdisk_parttype *t __attribute__ ((__unused__)))
{
printf(_("\tSorry - this fdisk cannot handle Mac disk labels."
"\n\tIf you want to add DOS-type partitions, create"