return 1;
}
-static void _errseg_destroy(const struct segment_type *segtype)
+static void _errseg_destroy(struct segment_type *segtype)
{
- dm_free((void *)segtype);
+ dm_free(segtype);
}
static struct segtype_handler _error_ops = {
{
}
-static void _format1_destroy(const struct format_type *fmt)
+static void _format1_destroy(struct format_type *fmt)
{
- dm_free((void *) fmt);
+ dm_free(fmt);
}
static struct format_handler _format1_ops = {
{
}
-static void _pool_destroy(const struct format_type *fmt)
+static void _pool_destroy(struct format_type *fmt)
{
- dm_free((void *) fmt);
+ dm_free(fmt);
}
/* *INDENT-OFF* */
}
}
-static void _text_destroy(const struct format_type *fmt)
+static void _text_destroy(struct format_type *fmt)
{
if (fmt->private) {
_free_dirs(&((struct mda_lists *) fmt->private)->dirs);
dm_free(fmt->private);
}
- dm_free((void *)fmt);
+ dm_free(fmt);
}
static struct metadata_area_ops _metadata_text_file_ops = {
return seg->segtype->name;
}
-static void _freeseg_destroy(const struct segment_type *segtype)
+static void _freeseg_destroy(struct segment_type *segtype)
{
- dm_free((void *)segtype);
+ dm_free(segtype);
}
static struct segtype_handler _freeseg_ops = {
/*
* Destructor for format type
*/
- void (*destroy) (const struct format_type * fmt);
+ void (*destroy) (struct format_type * fmt);
};
/*
int (*modules_needed) (struct dm_pool *mem,
const struct lv_segment *seg,
struct dm_list *modules);
- void (*destroy) (const struct segment_type * segtype);
+ void (*destroy) (struct segment_type * segtype);
int (*target_monitored) (struct lv_segment *seg, int *pending);
int (*target_monitor_events) (struct lv_segment *seg, int events);
int (*target_unmonitor_events) (struct lv_segment *seg, int events);
return 1;
}
-static void _mirrored_destroy(const struct segment_type *segtype)
+static void _mirrored_destroy(struct segment_type *segtype)
{
- dm_free((void *) segtype);
+ dm_free(segtype);
}
static struct segtype_handler _mirrored_ops = {
return 1;
}
-static void _replicator_destroy(const struct segment_type *segtype)
+static void _replicator_destroy(struct segment_type *segtype)
{
- dm_free((void *)segtype);
+ dm_free(segtype);
}
static struct segtype_handler _replicator_ops = {
return 1;
}
-static void _snap_destroy(const struct segment_type *segtype)
+static void _snap_destroy(struct segment_type *segtype)
{
- dm_free((void *)segtype);
+ dm_free(segtype);
}
static struct segtype_handler _snapshot_ops = {
}
#endif
-static void _striped_destroy(const struct segment_type *segtype)
+static void _striped_destroy(struct segment_type *segtype)
{
- dm_free((void *)segtype);
+ dm_free(segtype);
}
static struct segtype_handler _striped_ops = {
}
#endif
-static void _unknown_destroy(const struct segment_type *segtype)
+static void _unknown_destroy(struct segment_type *segtype)
{
- dm_free((void *)segtype);
+ dm_free(segtype);
}
static struct segtype_handler _unknown_ops = {
return 1;
}
-static void _zero_destroy(const struct segment_type *segtype)
+static void _zero_destroy(struct segment_type *segtype)
{
- dm_free((void *) segtype);
+ dm_free(segtype);
}
static struct segtype_handler _zero_ops = {