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>
Thu, 2 Oct 2014 15:30:18 +0000 (16:30 +0100)
commit70887982887b300b4783318c858914482580831d
treef10397ebc0044317635b0b60df25107cd3745123
parentfe5fe3a8003447476661dc468e3714b490ab9500
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