networkctl: move strv_isempty() check into dump_list()
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jan 2016 19:14:58 +0000 (20:14 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Jan 2016 13:42:03 +0000 (14:42 +0100)
commitdce8364918220bde8f2b520f17931451da72ffcf
treeca23fe3fd39ada3b256dac4753d47fd1937b92d6
parent3df9bec57c3e2d96f7e2a25961585cfa609b61eb
networkctl: move strv_isempty() check into dump_list()

Previously, each invocation of dump_list() was prefixed with a call to strv_isempty() to suppress invocation of the
function when the list is empty anyway. Move the check into the function itself, so that we can reduce the code a bit
in size.

(Also, prefix a couple of invocations we knowingly ignore return errors with a (void) cast).
src/network/networkctl.c