diff options
author | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
commit | e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1 (patch) | |
tree | 197a579049ddab74d8944939a45f8e0d46b6c3cf /lib/format_text/tags.c | |
parent | d35188058be01bd29128dcf1f5b79220fbcb135b (diff) | |
download | lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.gz lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.xz lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.zip |
Move the core of the lib/config/config.c functionality into libdevmapper,
leaving behind the LVM-specific parts of the code (convenience wrappers that
handle `struct device` and `struct cmd_context`, basically). A number of
functions have been renamed (in addition to getting a dm_ prefix) -- namely,
all of the config interface now has a dm_config_ prefix.
Diffstat (limited to 'lib/format_text/tags.c')
-rw-r--r-- | lib/format_text/tags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/format_text/tags.c b/lib/format_text/tags.c index 76d42db6..b0f0732a 100644 --- a/lib/format_text/tags.c +++ b/lib/format_text/tags.c @@ -61,13 +61,13 @@ bad: return_NULL; } -int read_tags(struct dm_pool *mem, struct dm_list *tags, const struct config_value *cv) +int read_tags(struct dm_pool *mem, struct dm_list *tags, const struct dm_config_value *cv) { - if (cv->type == CFG_EMPTY_ARRAY) + if (cv->type == DM_CFG_EMPTY_ARRAY) return 1; while (cv) { - if (cv->type != CFG_STRING) { + if (cv->type != DM_CFG_STRING) { log_error("Found a tag that is not a string"); return 0; } |