Skip to contentSkip to conversation

fdisk: remove listing variable

PATCH Applied Davidlohr Bueso 2 participants 2 messages Apr 27, 2012 – May 2, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 fdisk: remove listing variable

From: Davidlohr Bueso <[email protected]>

useless global variable.

---
 fdisk/fdisk.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fdisk/fdisk.c +0 -2
index 886f011..f49efd0 100644
@@ -216,7 +216,6 @@ char	*disk_device,			/* must be specified */
 
 int	fd,				/* the disk */
 	ext_index,			/* the prime extended partition */
-	listing = 0,			/* no aborts for fdisk -l */
 	nowarn = 0,			/* no warnings for fdisk -l/-s */
 	dos_compatible_flag = 0,	/* disabled by default */
 	dos_changed = 0,
@@ -2940,7 +2939,6 @@ main(int argc, char **argv) {
 		nowarn = 1;
 		if (argc > optind) {
 			int k;
-			listing = 1;
 			for (k = optind; k < argc; k++)
 				print_partition_table_from_option(argv[k]);
 		} else
Signature · 1 line
1.7.4.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Davidlohr Bueso
 fdisk/fdisk.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com