[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Wed Mar 16 18:35:23 UTC 2011


 parted/parted.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit da59b16ca8c22625507a1c52a86abd7e24791826
Author: Jim Meyering <meyering at redhat.com>
Date:   Wed Mar 16 18:56:06 2011 +0100

    maint: avoid new compiler warnings
    
    * parted/parted.c (do_print): Remove now-unused "error" label.
    (_print_disk_info): Use one more "const" attribute, to avoid
    compiler warnings.

diff --git a/parted/parted.c b/parted/parted.c
index 35bfaf3..c4cf959 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1405,7 +1405,7 @@ _print_disk_geometry (const PedDevice *dev)
 static void
 _print_disk_info (const PedDevice *dev, const PedDisk *disk)
 {
-        char *const transport[] = {"unknown", "scsi", "ide", "dac960",
+        char const *const transport[] = {"unknown", "scsi", "ide", "dac960",
                                          "cpqarray", "file", "ataraid", "i2o",
                                          "ubd", "dasd", "viodasd", "sx8", "dm",
                                          "xvd", "sd/mmc", "virtblk", "aoe",
@@ -1714,7 +1714,6 @@ do_print (PedDevice** dev)
 
 error_destroy_disk:
         ped_disk_destroy (disk);
-error:
         return 0;
 nopt:
         return 1;



More information about the Parted-commits mailing list