diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-06-25 14:14:54 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-06-25 15:12:41 +0200 |
commit | 0880db76afe85391430c547a67bad54b655a66e1 (patch) | |
tree | 3fc8013c53f22771d1b2bfca1bcdf88f233a8a09 /tests/libfstree/fstree_glob3.txt | |
parent | 41dc1dfaa0a290ef62800e603bb6b51a48501129 (diff) |
libutil: cleanup alignment trickery in mempool
- Store the return value of the page allocation directly into the
pool variable instead of an intermediate unsigned char pointer.
- Make the blob[] array the same type as the bitmap, this saves us
manual alignment trickery.
- Cleanup the pointer arithmetic, let the compiler do the
sizeof() multiplication.
- Use uintptr_t for the manual alignment of the data pointer, so we
don't run into signdness problems there.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libfstree/fstree_glob3.txt')
0 files changed, 0 insertions, 0 deletions