]> sourceware.org Git - lvm2.git/commitdiff
Remove meaningless const type qualifiers on cast type
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 4 Aug 2011 14:30:51 +0000 (14:30 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 4 Aug 2011 14:30:51 +0000 (14:30 +0000)
Static analyzis noticed we do not really need them - so removing.

WHATS_NEW
lib/misc/lvm-exec.c
lib/report/report.c
libdm/libdm-report.c

index 209b5a5554db30750fbfd7ae0d36a28bea4f2ba6..0719f065ad58320bc7fdeec1d69ec7024a52f4df 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.87 - 
 ===============================
+  Remove meaningless const type qualifiers on cast type.
   Fix memory leak in dmsetup _message() memory allocation error path.
   Add test for fcntl error in singlenode client code.
   Remove --force option from lvrename manpage.
index 775b801f6c2c09d1e09307dedaa1feb0406f4fab..dfac1632b3e8e3231b021f8484753cf5a6573c97 100644 (file)
@@ -75,7 +75,7 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
                /* FIXME Fix effect of reset_locking on cache then include this */
                /* destroy_toolcontext(cmd); */
                /* FIXME Use execve directly */
-               execvp(argv[0], (char **const) argv);
+               execvp(argv[0], (char **) argv);
                log_sys_error("execvp", argv[0]);
                _exit(errno);
        }
index cfc5073affe33b97e9daf3545a8e19201ec412e7..e572797a116787a2085cf27ac1ddcb46871c9312 100644 (file)
@@ -350,7 +350,7 @@ static int _size32_disp(struct dm_report *rh __attribute__((unused)), struct dm_
                return 0;
        }
 
-       *sortval = (const uint64_t) size;
+       *sortval = (uint64_t) size;
 
        dm_report_field_set_value(field, repstr, sortval);
 
index 021a21c834d65b360f1eb8a22fde00e1ca1be70b..3d34b7e3a80b60c066eceea32e84f63f51748048 100644 (file)
@@ -139,7 +139,7 @@ int dm_report_field_int(struct dm_report *rh,
                return 0;
        }
 
-       *sortval = (const uint64_t) value;
+       *sortval = (uint64_t) value;
        field->sort_value = sortval;
        field->report_string = repstr;
 
@@ -168,7 +168,7 @@ int dm_report_field_uint32(struct dm_report *rh,
                return 0;
        }
 
-       *sortval = (const uint64_t) value;
+       *sortval = (uint64_t) value;
        field->sort_value = sortval;
        field->report_string = repstr;
 
@@ -197,7 +197,7 @@ int dm_report_field_int32(struct dm_report *rh,
                return 0;
        }
 
-       *sortval = (const uint64_t) value;
+       *sortval = (uint64_t) value;
        field->sort_value = sortval;
        field->report_string = repstr;
 
This page took 0.053972 seconds and 5 git commands to generate.