From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib config/config.c datastruct/btree.c fo ...
Date: 20 Dec 2010 13:19:15 -0000 [thread overview]
Message-ID: <20101220131915.12405.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-12-20 13:19:14
Modified files:
lib/config : config.c
lib/datastruct : btree.c
lib/format_pool: format_pool.c
lib/format_text: import.c
lib/metadata : metadata.h
Log message:
Some const cleanups
Minor const warning fixes and internal API updates.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/config/config.c.diff?cvsroot=lvm2&r1=1.85&r2=1.86
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/datastruct/btree.c.diff?cvsroot=lvm2&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_pool/format_pool.c.diff?cvsroot=lvm2&r1=1.33&r2=1.34
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/import.c.diff?cvsroot=lvm2&r1=1.51&r2=1.52
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/metadata.h.diff?cvsroot=lvm2&r1=1.225&r2=1.226
--- LVM2/lib/config/config.c 2010/12/20 13:12:56 1.85
+++ LVM2/lib/config/config.c 2010/12/20 13:19:13 1.86
@@ -239,8 +239,8 @@
}
if (checksum_fn && checksum !=
- (checksum_fn(checksum_fn(INITIAL_CRC, (uint8_t *)p->fb, size),
- (uint8_t *)(p->fb + size), size2))) {
+ (checksum_fn(checksum_fn(INITIAL_CRC, (const uint8_t *)p->fb, size),
+ (const uint8_t *)(p->fb + size), size2))) {
log_error("%s: Checksum error", dev_name(dev));
goto out;
}
--- LVM2/lib/datastruct/btree.c 2008/01/30 13:59:58 1.13
+++ LVM2/lib/datastruct/btree.c 2010/12/20 13:19:13 1.14
@@ -103,7 +103,7 @@
void *btree_get_data(const struct btree_iter *it)
{
- return ((struct node *) it)->data;
+ return ((const struct node *) it)->data;
}
static struct node *_left(struct node *n)
--- LVM2/lib/format_pool/format_pool.c 2010/10/05 17:34:06 1.33
+++ LVM2/lib/format_pool/format_pool.c 2010/12/20 13:19:14 1.34
@@ -75,7 +75,7 @@
return usp;
}
-static int _check_usp(char *vgname, struct user_subpool *usp, int sp_count)
+static int _check_usp(const char *vgname, struct user_subpool *usp, int sp_count)
{
int i;
unsigned j;
--- LVM2/lib/format_text/import.c 2010/08/03 13:06:35 1.51
+++ LVM2/lib/format_text/import.c 2010/12/20 13:19:14 1.52
@@ -131,7 +131,7 @@
when, desc);
}
-struct volume_group *import_vg_from_buffer(char *buf,
+struct volume_group *import_vg_from_buffer(const char *buf,
struct format_instance *fid)
{
struct volume_group *vg = NULL;
--- LVM2/lib/metadata/metadata.h 2010/12/10 22:39:55 1.225
+++ LVM2/lib/metadata/metadata.h 2010/12/20 13:19:14 1.226
@@ -386,7 +386,7 @@
* For internal metadata caching.
*/
int export_vg_to_buffer(struct volume_group *vg, char **buf);
-struct volume_group *import_vg_from_buffer(char *buf,
+struct volume_group *import_vg_from_buffer(const char *buf,
struct format_instance *fid);
/*
reply other threads:[~2010-12-20 13:19 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=20101220131915.12405.qmail@sourceware.org \
--to=zkabelac@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.