1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix _align so it works on 64-bit machines.

This commit is contained in:
Patrick Caulfield 2002-03-12 15:27:51 +00:00
parent ad21a5585c
commit 7c8bd3fcd0

View File

@ -131,9 +131,10 @@ struct target *create_target(uint64_t start,
return NULL;
}
static void *_align(void *ptr, unsigned int align)
static void *_align(void *ptr, unsigned int a)
{
align--;
register unsigned long align = --a;
return (void *) (((unsigned long) ptr + align) & ~align);
}