]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: move remaining ptes[] code to fdiskdoslabel.c
authorKarel Zak <kzak@redhat.com>
Wed, 12 Jun 2013 15:47:49 +0000 (17:47 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:47:01 +0000 (16:47 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk.c
fdisks/fdiskdoslabel.c

index b160aa0a2ef6e9bdfd4a62672d1131b344c9b8e9..6360d37ec76db6d0a796a05c9264a2968e68557c 100644 (file)
@@ -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;
index 8edd436a52e90e86f72e7f0f46014059624acd5b..4b0a5cb4bc095a5bc0f791f67f298cb0cec8bb07 100644 (file)
@@ -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)