From 04d83a9251509e67cd22d9185ddec3a7fdcb21af Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 12 Jun 2013 17:47:49 +0200 Subject: [PATCH] fdisk: move remaining ptes[] code to fdiskdoslabel.c Signed-off-by: Karel Zak --- fdisks/fdisk.c | 5 ----- fdisks/fdiskdoslabel.c | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index b160aa0a2e..6360d37ec7 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -84,11 +84,6 @@ void toggle_units(struct fdisk_context *cxt) fdisk_info(cxt, _("Changing display/entry units to sectors.")); } -struct partition * -get_part_table(int i) { - return ptes[i].part_table; -} - void list_partition_types(struct fdisk_context *cxt) { struct fdisk_parttype *types; diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c index 8edd436a52..4b0a5cb4bc 100644 --- a/fdisks/fdiskdoslabel.c +++ b/fdisks/fdiskdoslabel.c @@ -99,6 +99,10 @@ static int get_partition_unused_primary(struct fdisk_context *cxt) } } +struct partition *get_part_table(int i) +{ + return ptes[i].part_table; +} /* Allocate a buffer and read a partition table sector */ static void read_pte(struct fdisk_context *cxt, int pno, sector_t offset) -- 2.47.2