From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/lib/misc crc.c
Date: 25 Oct 2010 13:36:10 -0000 [thread overview]
Message-ID: <20101025133610.26415.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2010-10-25 13:36:09
Modified files:
lib/misc : crc.c
Log message:
Fix constness warning
Keep using const pointers.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/crc.c.diff?cvsroot=lvm2&r1=1.8&r2=1.9
--- LVM2/lib/misc/crc.c 2010/09/27 19:10:46 1.8
+++ LVM2/lib/misc/crc.c 2010/10/25 13:36:09 1.9
@@ -59,8 +59,8 @@
0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf,
0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d,
};
- uint32_t *start = (uint32_t *) buf;
- uint32_t *end = (uint32_t *) (buf + (size & 0xfffffffc));
+ const uint32_t *start = (const uint32_t *) buf;
+ const uint32_t *end = (const uint32_t *) (buf + (size & 0xfffffffc));
uint32_t crc = initial;
/* Process 4 bytes per iteration */
@@ -73,7 +73,7 @@
}
/* Process any bytes left over */
- buf = (uint8_t *) start;
+ buf = (const uint8_t *) start;
size = size & 0x3;
while (size--) {
crc = crc ^ *buf++;
reply other threads:[~2010-10-25 13:36 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=20101025133610.26415.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.