]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: remove listing variable
authorDavidlohr Bueso <dave@gnu.org>
Fri, 27 Apr 2012 11:23:47 +0000 (13:23 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 May 2012 07:33:32 +0000 (09:33 +0200)
useless global variable.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
fdisk/fdisk.c

index 886f011bf33b8a39293a100339b9fef4c8f2b9fd..f49efd0b37b88da195ca8a3a9e53524728cb7e36 100644 (file)
@@ -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