mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Const warning fixes
With recent update of dm_report_field_string() API call to accept completely const objects - we no longer need loose constness here and keep it forwarding.
This commit is contained in:
parent
3aef5ae7fb
commit
36089b2236
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.64 -
|
Version 1.02.64 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix const cast in dmsetup calls of dm_report_field_string().
|
||||||
Streamline /dev/mapper/control node code for common cases.
|
Streamline /dev/mapper/control node code for common cases.
|
||||||
Use hard-coded dm control node device number for 2.6.36 kernels and above.
|
Use hard-coded dm control node device number for 2.6.36 kernels and above.
|
||||||
Improve stack debug reporting in dm_task_create().
|
Improve stack debug reporting in dm_task_create().
|
||||||
|
@ -2455,7 +2455,7 @@ static int _dm_subsystem_disp(struct dm_report *rh,
|
|||||||
struct dm_report_field *field, const void *data,
|
struct dm_report_field *field, const void *data,
|
||||||
void *private __attribute__((unused)))
|
void *private __attribute__((unused)))
|
||||||
{
|
{
|
||||||
return dm_report_field_string(rh, field, (const char **) data);
|
return dm_report_field_string(rh, field, (const char *const *) data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _dm_vg_name_disp(struct dm_report *rh,
|
static int _dm_vg_name_disp(struct dm_report *rh,
|
||||||
@ -2464,7 +2464,7 @@ static int _dm_vg_name_disp(struct dm_report *rh,
|
|||||||
void *private __attribute__((unused)))
|
void *private __attribute__((unused)))
|
||||||
{
|
{
|
||||||
|
|
||||||
return dm_report_field_string(rh, field, (const char **) data);
|
return dm_report_field_string(rh, field, (const char *const *) data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _dm_lv_name_disp(struct dm_report *rh,
|
static int _dm_lv_name_disp(struct dm_report *rh,
|
||||||
@ -2473,7 +2473,7 @@ static int _dm_lv_name_disp(struct dm_report *rh,
|
|||||||
void *private __attribute__((unused)))
|
void *private __attribute__((unused)))
|
||||||
|
|
||||||
{
|
{
|
||||||
return dm_report_field_string(rh, field, (const char **) data);
|
return dm_report_field_string(rh, field, (const char *const *) data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int _dm_lv_layer_name_disp(struct dm_report *rh,
|
static int _dm_lv_layer_name_disp(struct dm_report *rh,
|
||||||
@ -2482,7 +2482,7 @@ static int _dm_lv_layer_name_disp(struct dm_report *rh,
|
|||||||
void *private __attribute__((unused)))
|
void *private __attribute__((unused)))
|
||||||
|
|
||||||
{
|
{
|
||||||
return dm_report_field_string(rh, field, (const char **) data);
|
return dm_report_field_string(rh, field, (const char *const *) data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *_task_get_obj(void *obj)
|
static void *_task_get_obj(void *obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user