summaryrefslogtreecommitdiffstats
path: root/fdisk/cfdisk.c
diff options
context:
space:
mode:
authorKarel Zak2011-02-21 17:06:26 +0100
committerKarel Zak2011-02-21 17:06:26 +0100
commit2ed7a5a3d79e3785215378f74501f87baf74a2f0 (patch)
tree96cb6fc7e1d74f32e39b47a3a463f7413e35b4ae /fdisk/cfdisk.c
parentcfdisk: remove unused vertical menu direction code (diff)
downloadkernel-qcow2-util-linux-2ed7a5a3d79e3785215378f74501f87baf74a2f0.tar.gz
kernel-qcow2-util-linux-2ed7a5a3d79e3785215378f74501f87baf74a2f0.tar.xz
kernel-qcow2-util-linux-2ed7a5a3d79e3785215378f74501f87baf74a2f0.zip
cfdisk: fix compiler warning
cfdisk.c: In function ‘menuUpdate’: cfdisk.c:1034:25: warning: unused variable ‘ymargin’ Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk/cfdisk.c')
-rw-r--r--fdisk/cfdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c
index d4a1b337a..7b7172169 100644
--- a/fdisk/cfdisk.c
+++ b/fdisk/cfdisk.c
@@ -1031,7 +1031,7 @@ struct MenuItem
static int
menuUpdate( int y, int x, struct MenuItem *menuItems, int itemLength,
char *available, int menuType, int current ) {
- int i, lmargin = x, ymargin = y;
+ int i, lmargin = x;
char *mcd;
/* Print available buttons */