1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Preserve const for char pointer

Keep char pointers 'const'  (introduced with cling commit).
This commit is contained in:
Zdenek Kabelac 2010-11-11 12:32:33 +00:00
parent f0fffb8c6f
commit 64dff85ce4
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ int str_list_match_item(const struct dm_list *sll, const char *str)
* Is at least one item on both lists? * Is at least one item on both lists?
* If tag_matched is non-NULL, it is set to the tag that matched. * If tag_matched is non-NULL, it is set to the tag that matched.
*/ */
int str_list_match_list(const struct dm_list *sll, const struct dm_list *sll2, char **tag_matched) int str_list_match_list(const struct dm_list *sll, const struct dm_list *sll2, const char **tag_matched)
{ {
struct str_list *sl; struct str_list *sl;

View File

@ -20,7 +20,7 @@ struct dm_list *str_list_create(struct dm_pool *mem);
int str_list_add(struct dm_pool *mem, struct dm_list *sll, const char *str); int str_list_add(struct dm_pool *mem, struct dm_list *sll, const char *str);
int str_list_del(struct dm_list *sll, const char *str); int str_list_del(struct dm_list *sll, const char *str);
int str_list_match_item(const struct dm_list *sll, const char *str); int str_list_match_item(const struct dm_list *sll, const char *str);
int str_list_match_list(const struct dm_list *sll, const struct dm_list *sll2, char **tag_matched); int str_list_match_list(const struct dm_list *sll, const struct dm_list *sll2, const char **tag_matched);
int str_list_lists_equal(const struct dm_list *sll, const struct dm_list *sll2); int str_list_lists_equal(const struct dm_list *sll, const struct dm_list *sll2);
int str_list_dup(struct dm_pool *mem, struct dm_list *sllnew, int str_list_dup(struct dm_pool *mem, struct dm_list *sllnew,
const struct dm_list *sllold); const struct dm_list *sllold);

View File

@ -959,7 +959,7 @@ static int _has_matching_pv_tag(struct pv_match *pvmatch, struct pv_segment *pvs
{ {
struct config_value *cv; struct config_value *cv;
char *str; char *str;
char *tag_matched; const char *tag_matched;
for (cv = pvmatch->cling_tag_list_cn->v; cv; cv = cv->next) { for (cv = pvmatch->cling_tag_list_cn->v; cv; cv = cv->next) {
if (cv->type != CFG_STRING) { if (cv->type != CFG_STRING) {