networkctl: assume that we can always print local networking addresses
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 Jun 2022 10:21:12 +0000 (12:21 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Jun 2022 07:52:52 +0000 (09:52 +0200)
commit94a779628a71e09565c18edebcbdd8c0e0cb391f
treeacd66677732710ee8a9cf2807778d780833ec7f7
parent84dbb3fd83ef7d7e5b2ea02be1f492974384256c
networkctl: assume that we can always print local networking addresses

IN6_ADDR_TO_STRING(…) always returns something, so we can simplify the code a
lot. Also, let's not do step-wise concatenation, but instead handle everything
with one str_extendf() call.
src/network/networkctl.c