diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-25 20:14:58 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-26 14:42:03 +0100 |
commit | dce8364918220bde8f2b520f17931451da72ffcf (patch) | |
tree | ca23fe3fd39ada3b256dac4753d47fd1937b92d6 /src/network/networkd-manager.c | |
parent | 3df9bec57c3e2d96f7e2a25961585cfa609b61eb (diff) |
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).
Diffstat (limited to 'src/network/networkd-manager.c')
0 files changed, 0 insertions, 0 deletions