From: mornfall@sourceware.org <mornfall@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib config/config.c config/config.h unkno ...
Date: 22 Oct 2009 10:38:08 -0000 [thread overview]
Message-ID: <20091022103808.13165.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at 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") ||
reply other threads:[~2009-10-22 10:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091022103808.13165.qmail@sourceware.org \
--to=mornfall@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.