diff options
author | Karel Zak | 2012-07-23 10:56:06 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-23 10:56:06 +0200 |
commit | a71601af2769cc256341b85414065e13377671d7 (patch) | |
tree | ca984e880a6a086f2009e0e2fcc0d5a90c666f52 /fdisks/fdiskdoslabel.c | |
parent | fdisk: move user geometry setting from fdisk.c to API (diff) | |
download | kernel-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.c | 3 |
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) |