smalloc: fix style, use macro
buffer: use macro