1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-29 15:22:30 +03:00

Remove meaningless const type qualifiers on cast type

Static analyzis noticed we do not really need them - so removing.
This commit is contained in:
Zdenek Kabelac 2011-08-04 14:30:51 +00:00
parent 6fb5fbbabf
commit 586f310618
4 changed files with 6 additions and 5 deletions

View File

@ -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.

View 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);
}

View 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);

View 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;