diff options
author | 2010-10-30 15:36:32 +0000 | |
---|---|---|
committer | 2010-10-30 15:36:32 +0000 | |
commit | f7b6026db2336f9c3c98d74599244a0c06fdb5ae (patch) | |
tree | edbdba640de7fc3d0a4a1d8a735fe1e293669ca1 /usr.bin/netstat/main.c | |
parent | no need to compute hdrlen in (), it is not used. (diff) | |
download | wireguard-openbsd-f7b6026db2336f9c3c98d74599244a0c06fdb5ae.tar.xz wireguard-openbsd-f7b6026db2336f9c3c98d74599244a0c06fdb5ae.zip |
fix a 10 year old bug in the memory allocator, which affected only sparc.
sparc has 4 byte long, but needs 8 byte alignment. recently the DIR
struct was changed to contain some off_t, which needs 8 byte alignment.
turns out the allocator calculated the bias for alignment, and then
subtracted out it's private linkage storage afterwards. on hppa this
worked because a 8-byte object can be loaded at a 4-byte boundary; on
all other architectures the situation was either 4/4 or 8/8.
thanks for a bit of help from drahn
Diffstat (limited to 'usr.bin/netstat/main.c')
0 files changed, 0 insertions, 0 deletions