summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2012-05-02 14:05:51 +0200
committerKarel Zak2012-05-02 14:05:51 +0200
commit96f817fb169ac38fe5535cb8c6d2fdf9b2cb8f10 (patch)
treea6e2d59931e925c350d6aacbcdb1ff3112e3cee0 /fdisk/fdisk.c
parentfdisk: isolate dos label logic (diff)
downloadkernel-qcow2-util-linux-96f817fb169ac38fe5535cb8c6d2fdf9b2cb8f10.tar.gz
kernel-qcow2-util-linux-96f817fb169ac38fe5535cb8c6d2fdf9b2cb8f10.tar.xz
kernel-qcow2-util-linux-96f817fb169ac38fe5535cb8c6d2fdf9b2cb8f10.zip
fdisk: fix fdiskdoslabel.c global variables
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r--fdisk/fdisk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index 66952668e..acc84d1c8 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -54,6 +54,9 @@
static void delete_partition(int i);
+unsigned char *MBRbuffer;
+int MBRbuffer_changed;
+
#define hex_val(c) ({ \
char _c = (c); \
isdigit(_c) ? _c - '0' : \
@@ -145,7 +148,6 @@ char *disk_device, /* must be specified */
line_buffer[LINE_LENGTH];
int fd, /* the disk */
- ext_index, /* the prime extended partition */
nowarn = 0, /* no warnings for fdisk -l/-s */
dos_compatible_flag = 0, /* disabled by default */
dos_changed = 0,