summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2014-08-14 12:01:38 +0200
committerKarel Zak2014-08-14 12:01:38 +0200
commit5ab37600712d476156160ba7fe1b5d51e52b33cd (patch)
tree179314c95398b411a7ae3b4fd9ef4cdff3f4988f /disk-utils/fdisk.c
parentlibfdisk: (gpt) allow to specify attr bit by API (diff)
downloadkernel-qcow2-util-linux-5ab37600712d476156160ba7fe1b5d51e52b33cd.tar.gz
kernel-qcow2-util-linux-5ab37600712d476156160ba7fe1b5d51e52b33cd.tar.xz
kernel-qcow2-util-linux-5ab37600712d476156160ba7fe1b5d51e52b33cd.zip
libfdisk: move get_parttypes to label API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.c')
-rw-r--r--disk-utils/fdisk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c
index ed008e703..6883b6c41 100644
--- a/disk-utils/fdisk.c
+++ b/disk-utils/fdisk.c
@@ -354,11 +354,12 @@ int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask,
struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt)
{
const char *q;
+ struct fdisk_label *lb = fdisk_get_label(cxt, NULL);
if (!cxt || !cxt->label || !cxt->label->nparttypes)
return NULL;
- q = fdisk_is_parttype_string(cxt) ?
+ q = fdisk_label_is_parttype_string(lb) ?
_("Partition type (type L to list all types): ") :
_("Hex code (type L to list all codes): ");
do {