summaryrefslogtreecommitdiffstats
path: root/libfdisk/src
diff options
context:
space:
mode:
authorKarel Zak2017-01-05 12:36:08 +0100
committerKarel Zak2017-01-05 12:36:08 +0100
commite213a8e5a39fbe19082e16b2616f1b02cf673d32 (patch)
tree0b85ffc4358360adba41b1c3e272b4d377b0e9bf /libfdisk/src
parentlibsmartcols: unused parameter [-Wunused-parameter] (diff)
downloadkernel-qcow2-util-linux-e213a8e5a39fbe19082e16b2616f1b02cf673d32.tar.gz
kernel-qcow2-util-linux-e213a8e5a39fbe19082e16b2616f1b02cf673d32.tar.xz
kernel-qcow2-util-linux-e213a8e5a39fbe19082e16b2616f1b02cf673d32.zip
libfdisk: (sun) use self_label()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src')
-rw-r--r--libfdisk/src/sun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfdisk/src/sun.c b/libfdisk/src/sun.c
index 55ec8773c..d6a71b6e6 100644
--- a/libfdisk/src/sun.c
+++ b/libfdisk/src/sun.c
@@ -120,7 +120,7 @@ static int sun_probe_label(struct fdisk_context *cxt)
assert(fdisk_is_label(cxt, SUN));
/* map first sector to header */
- sun = (struct fdisk_sun_label *) cxt->label;
+ sun = self_label(cxt);
sun->header = (struct sun_disklabel *) cxt->firstsector;
sunlabel = sun->header;
@@ -213,7 +213,7 @@ static int sun_create_disklabel(struct fdisk_context *cxt)
if (rc)
return rc;
- sun = (struct fdisk_sun_label *) cxt->label;
+ sun = self_label(cxt);
sun->header = (struct sun_disklabel *) cxt->firstsector;
sunlabel = sun->header;