]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: use a single variable for the current disklabel
authorFrancesco Cosoleto <cosoleto@gmail.com>
Sun, 3 Jul 2011 10:01:21 +0000 (12:01 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Jul 2011 10:01:42 +0000 (12:01 +0200)
commit365acc97654d33a01698ada9bf18fbbdce7d88cc
tree243cce58d7c6210a53a832028165dc25f4f8e73d
parent34483418db724bc8e56e7f61a0cf6aa019bd4b71
fdisk: use a single variable for the current disklabel

Using a variable for each supported partition table type doesn't seem necessary.

This fixes also a minor bug in switching from SGI label to SUN label: the expert
menu isn't available as sgi_label variable remains set to true.

Code a bit more clear as *_label names have similarity with names such as
"sgilabel", "struct sun_label".

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
fdisk/fdisk.c
fdisk/fdisk.h
fdisk/fdiskaixlabel.c
fdisk/fdiskmaclabel.c
fdisk/fdisksgilabel.c
fdisk/fdisksunlabel.c