public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/lib config/config.c config/config.h unkno ...
@ 2009-10-22 10:38 mornfall
  0 siblings, 0 replies; only message in thread
From: mornfall @ 2009-10-22 10:38 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	mornfall@sourceware.org	2009-10-22 10:38:07

Modified files:
	lib/config     : config.c config.h 
	lib/unknown    : unknown.c 

Log message:
	Fix the "const discarded" warnings introduced in the unknown segment patch.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.76&r2=1.77
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.h.diff?cvsroot=lvm2&r1=1.29&r2=1.30
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/unknown/unknown.c.diff?cvsroot=lvm2&r1=1.1&r2=1.2

--- LVM2/lib/config/config.c	2009/10/16 17:41:51	1.76
+++ LVM2/lib/config/config.c	2009/10/22 10:38:07	1.77
@@ -451,7 +451,7 @@
 	return 1;
 }
 
-static int _write_config(struct config_node *n, int only_one,
+static int _write_config(const struct config_node *n, int only_one,
 			 struct output_line *outline, int level)
 {
 	char space[MAX_INDENT + 1];
@@ -504,7 +504,7 @@
 	return 1;
 }
 
-int write_config_node(struct config_node *cn, putline_fn putline, void *baton)
+int write_config_node(const struct config_node *cn, putline_fn putline, void *baton)
 {
 	struct output_line outline;
 	outline.fp = NULL;
--- LVM2/lib/config/config.h	2009/10/16 17:41:51	1.29
+++ LVM2/lib/config/config.h	2009/10/22 10:38:07	1.30
@@ -71,7 +71,7 @@
 		      int argc, char **argv);
 
 typedef int (*putline_fn)(const char *line, void *baton);
-int write_config_node(struct config_node *cn, putline_fn putline, void *baton);
+int write_config_node(const struct config_node *cn, putline_fn putline, void *baton);
 
 time_t config_file_timestamp(struct config_tree *cft);
 int config_file_changed(struct config_tree *cft);
--- LVM2/lib/unknown/unknown.c	2009/10/16 17:41:52	1.1
+++ LVM2/lib/unknown/unknown.c	2009/10/22 10:38:07	1.2
@@ -35,7 +35,8 @@
 static int _unknown_text_import(struct lv_segment *seg, const struct config_node *sn,
 				struct dm_hash_table *pv_hash)
 {
-	struct config_node *new, *last = NULL, *current, *head = NULL;
+	struct config_node *new, *last = NULL, *head = NULL;
+	const struct config_node *current;
 	log_verbose("importing unknown segment");
 	for (current = sn; current != NULL; current = current->sib) {
 		if (!strcmp(current->key, "type") || !strcmp(current->key, "start_extent") ||


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-22 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22 10:38 LVM2/lib config/config.c config/config.h unkno mornfall

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).