public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 lib/report/report.c libdm/libdm-report.c Date: Mon, 15 Feb 2010 18:34:00 -0000 [thread overview] Message-ID: <20100215183401.3359.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2010-02-15 18:34:00 Modified files: lib/report : report.c libdm : libdm-report.c Log message: * add more 'const' - fixes gcc constness warning Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/report/report.c.diff?cvsroot=lvm2&r1=1.112&r2=1.113 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-report.c.diff?cvsroot=lvm2&r1=1.33&r2=1.34 --- LVM2/lib/report/report.c 2010/02/14 03:21:38 1.112 +++ LVM2/lib/report/report.c 2010/02/15 18:34:00 1.113 @@ -66,7 +66,7 @@ struct dm_report_field *field, const void *data, void *private __attribute((unused))) { - const char *name = dev_name(*(const struct device **) data); + const char *name = dev_name(*(const struct device * const *) data); return dm_report_field_string(rh, field, &name); } @@ -873,7 +873,7 @@ { struct lvmcache_info *info; uint64_t freespace = UINT64_MAX, mda_free; - const char *pvid = (const char *)(&((struct id *) data)->uuid); + const char *pvid = (const char *)(&((const struct id *) data)->uuid); struct metadata_area *mda; if ((info = info_from_pvid(pvid, 0))) @@ -916,7 +916,7 @@ { struct lvmcache_info *info; uint64_t min_mda_size = 0; - const char *pvid = (const char *)(&((struct id *) data)->uuid); + const char *pvid = (const char *)(&((const struct id *) data)->uuid); /* PVs could have 2 mdas of different sizes (rounding effect) */ if ((info = info_from_pvid(pvid, 0))) --- LVM2/libdm/libdm-report.c 2010/01/11 21:28:04 1.33 +++ LVM2/libdm/libdm-report.c 2010/02/15 18:34:00 1.34 @@ -819,8 +819,8 @@ */ static int _row_compare(const void *a, const void *b) { - const struct row *rowa = *(const struct row **) a; - const struct row *rowb = *(const struct row **) b; + const struct row *rowa = *(const struct row * const *) a; + const struct row *rowb = *(const struct row * const *) b; const struct dm_report_field *sfa, *sfb; uint32_t cnt;
reply other threads:[~2010-02-15 18:34 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=20100215183401.3359.qmail@sourceware.org \ --to=zkabelac@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).