]> git.cameronkatri.com Git - mandoc.git/commit
Do not cast void pointers to pointers requiring alignment.
authorIngo Schwarze <schwarze@openbsd.org>
Tue, 20 Dec 2011 21:41:11 +0000 (21:41 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Tue, 20 Dec 2011 21:41:11 +0000 (21:41 +0000)
commit028a2f531d2c69747d239102a16dc0a9044afea1
treeeb2fb84de2a29396760278671d5a732eff310a48
parent0d9470784d26b2926cea58b30ad4c1587cbedb14
Do not cast void pointers to pointers requiring alignment.
This makes mandocdb(8)/apropos(1) work on strict alignment architectures.
Basic way to fix this confirmed by deraadt@ and kettenis@, thanks.
ok kristaps@

This now works on both sparc64 and i386, but note that the binary
database format is still machine-dependent.
apropos_db.c
mandocdb.c