]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: remove fdisk_get_partition_type()
authorKarel Zak <kzak@redhat.com>
Thu, 28 Nov 2013 11:56:12 +0000 (12:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Mar 2014 10:35:12 +0000 (11:35 +0100)
commit851515216f0a6b2692a3228c59d78a756a72e665
tree0c6705ead40d3e5189313a9198989f3815beb499
parent27d4d07292fff6f89f12ab8d186d703372b83a40
libfdisk: remove fdisk_get_partition_type()

Let's use more generic:

fdisk_get_partition()
        fdisk_partition_get_parttype()

rather than fdisk_get_partition_type().

The patch also improves fdisk_get_partition() semantic to allocate
a new partition struct if the argument is NULL.

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisk.c
libfdisk/src/label.c
libfdisk/src/libfdisk.h
libfdisk/src/partition.c