chiark / gitweb /
subnet_to_string: Do not allocate
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 19 Sep 2014 22:37:58 +0000 (23:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Sep 2014 12:36:50 +0000 (13:36 +0100)
commitdf7e7ab52b5b462ceba7025d8648a06e42e1b497
tree09117f557e90b2abc83ac623a9ebc026095dd24c
parent23a1ba66ffc73bfe54787999a1ad3c7f222e2098
subnet_to_string: Do not allocate

None of the three call sites want to keep the value for any length of
time - they just use it right away.  Replace the allocation with a use
of the round-robin buffers from ipaddr_getbuf, and remove the frees at
the call sites.

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