public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/lib datastruct/str_list.c datastruct/str_ ...
@ 2010-11-11 12:32 zkabelac
0 siblings, 0 replies; only message in thread
From: zkabelac @ 2010-11-11 12:32 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2010-11-11 12:32:34
Modified files:
lib/datastruct : str_list.c str_list.h
lib/metadata : lv_manip.c
Log message:
Preserve const for char pointer
Keep char pointers 'const' (introduced with cling commit).
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/datastruct/str_list.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/datastruct/str_list.h.diff?cvsroot=lvm2&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.236&r2=1.237
--- LVM2/lib/datastruct/str_list.c 2010/11/09 12:34:41 1.13
+++ LVM2/lib/datastruct/str_list.c 2010/11/11 12:32:33 1.14
@@ -95,7 +95,7 @@
* Is at least one item on both lists?
* 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;
--- LVM2/lib/datastruct/str_list.h 2010/11/09 12:34:42 1.10
+++ LVM2/lib/datastruct/str_list.h 2010/11/11 12:32:33 1.11
@@ -20,7 +20,7 @@
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_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_dup(struct dm_pool *mem, struct dm_list *sllnew,
const struct dm_list *sllold);
--- LVM2/lib/metadata/lv_manip.c 2010/11/09 12:34:42 1.236
+++ LVM2/lib/metadata/lv_manip.c 2010/11/11 12:32:34 1.237
@@ -959,7 +959,7 @@
{
struct config_value *cv;
char *str;
- char *tag_matched;
+ const char *tag_matched;
for (cv = pvmatch->cling_tag_list_cn->v; cv; cv = cv->next) {
if (cv->type != CFG_STRING) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-11 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-11 12:32 LVM2/lib datastruct/str_list.c datastruct/str_ zkabelac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).