chiark / gitweb /
Static buffers: Provide new rotating static buffer macros
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Oct 2014 18:04:31 +0000 (19:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Oct 2014 18:05:33 +0000 (19:05 +0100)
commit5e7a63be9a512bf979e5538e6a694d5fd66b9380
treea65937f5ebafdb0536f374ee45fd9ec8ff21e047
parent5f37eb107bd4370ee0ed1c1c185abb06ee873ac2
Static buffers: Provide new rotating static buffer macros

Provide new macros SBUF_DEFINE and SBUF which replace the open coded
rotating static buffers in ipaddr_getbuf (ipaddr_to_string and
subnet_to_string) and iaddr_to_string.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ipaddr.c
util.c
util.h