From 2262b32057a7a60b3de3876b26b192fa4d05205c Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sun, 16 Oct 2005 23:03:59 +0000 Subject: Use hash, bitset, malloc, pool from libdevmapper. --- lib/error/errseg.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/error/errseg.c') diff --git a/lib/error/errseg.c b/lib/error/errseg.c index 303c39a0..906d1df1 100644 --- a/lib/error/errseg.c +++ b/lib/error/errseg.c @@ -13,8 +13,6 @@ */ #include "lib.h" -#include "pool.h" -#include "list.h" #include "toolcontext.h" #include "segtype.h" #include "display.h" @@ -40,7 +38,7 @@ static int _merge_segments(struct lv_segment *seg1, struct lv_segment *seg2) } #ifdef DEVMAPPER_SUPPORT -static int _compose_target_line(struct dev_manager *dm, struct pool *mem, +static int _compose_target_line(struct dev_manager *dm, struct dm_pool *mem, struct config_tree *cft, void **target_state, struct lv_segment *seg, char *params, size_t paramsize, const char **target, int *pos, @@ -69,7 +67,7 @@ static int _target_present(void) static void _destroy(const struct segment_type *segtype) { - dbg_free((void *) segtype); + dm_free((void *) segtype); } static struct segtype_handler _error_ops = { @@ -84,7 +82,7 @@ static struct segtype_handler _error_ops = { struct segment_type *init_error_segtype(struct cmd_context *cmd) { - struct segment_type *segtype = dbg_malloc(sizeof(*segtype)); + struct segment_type *segtype = dm_malloc(sizeof(*segtype)); if (!segtype) { stack; -- cgit