summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskdoslabel.c
diff options
context:
space:
mode:
authorKarel Zak2012-07-23 10:56:06 +0200
committerKarel Zak2012-07-23 10:56:06 +0200
commita71601af2769cc256341b85414065e13377671d7 (patch)
treeca984e880a6a086f2009e0e2fcc0d5a90c666f52 /fdisks/fdiskdoslabel.c
parentfdisk: move user geometry setting from fdisk.c to API (diff)
downloadkernel-qcow2-util-linux-a71601af2769cc256341b85414065e13377671d7.tar.gz
kernel-qcow2-util-linux-a71601af2769cc256341b85414065e13377671d7.tar.xz
kernel-qcow2-util-linux-a71601af2769cc256341b85414065e13377671d7.zip
fdisk: get_boot() has to die (step I.)
- move generic stuff around "create disklabel" operation to API Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r--fdisks/fdiskdoslabel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c
index a115e6615..b181fb353 100644
--- a/fdisks/fdiskdoslabel.c
+++ b/fdisks/fdiskdoslabel.c
@@ -219,7 +219,7 @@ void dos_print_mbr_id(struct fdisk_context *cxt)
printf(_("Disk identifier: 0x%08x\n"), dos_read_mbr_id(cxt->mbr));
}
-void create_doslabel(struct fdisk_context *cxt)
+int create_doslabel(struct fdisk_context *cxt)
{
unsigned int id;
@@ -238,6 +238,7 @@ void create_doslabel(struct fdisk_context *cxt)
/* Put MBR signature */
write_part_table_flag(cxt->mbr);
+ return 0;
}
void dos_set_mbr_id(struct fdisk_context *cxt)