fast-import: fix unalinged allocation and access
commit69ae517541ed5ab7d4fdcd8f82a9b8bd949df347
authorDavid S. Miller <davem@davemloft.net>
Sat, 15 Dec 2007 04:39:16 +0000 (14 20:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Dec 2007 04:39:16 +0000 (14 20:39 -0800)
tree0285db08bcf3f2b9f1f719a63b22691a4de4b3f4
parent896c0535afe2f00683f7d4e8171fad7ec156f16f
fast-import: fix unalinged allocation and access

The specialized pool allocator fast-import uses aligned objects on the
size of a pointer, which was not sufficient at least on Sparc.  Instead,
make the alignment for objects of type unitmax_t.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c