commit | 41eb9a4305fbcb206c900a18af7df7115d857d60 | [log] [tgz] |
---|---|---|
author | Timo Teräs <timo.teras@iki.fi> | Sat May 23 11:08:39 2015 +0300 |
committer | David Lamparter <equinox@opensourcerouting.org> | Mon Jun 01 16:31:14 2015 +0200 |
tree | d132fa1a4e113aa5d0bcf84d60933b36383b182d | |
parent | 53009d387a633997b16d32224b50451b5c81b61a [diff] |
lib: make prefix2str simpler to use, and use it in zclient Returning the buffer allows using it in the logging functions in easier way. This also makes the API consistent with sockunion. Add also PREFIX_STRLEN to be the generic buffer length required for any prefix string representation. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>