smalloc: fix style, use macro
buffer: use macro
smalloc: revert change to use pointer indirection

Better to compare fixed addresses than to use pointer indirection.