mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Switch to char* arithmetic from void*
This commit is contained in:
parent
321ae653b6
commit
aa4f87d6e3
@ -87,8 +87,8 @@ static size_t _mstats; /* statistic for maps locking */
|
|||||||
static void _touch_memory(void *mem, size_t size)
|
static void _touch_memory(void *mem, size_t size)
|
||||||
{
|
{
|
||||||
size_t pagesize = lvm_getpagesize();
|
size_t pagesize = lvm_getpagesize();
|
||||||
void *pos = mem;
|
char *pos = mem;
|
||||||
void *end = mem + size - sizeof(long);
|
char *end = pos + size - sizeof(long);
|
||||||
|
|
||||||
while (pos < end) {
|
while (pos < end) {
|
||||||
*(long *) pos = 1;
|
*(long *) pos = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user