diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-14 17:48:29 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-19 21:04:02 +0900 |
commit | ee5324aa04bb46a9a8e1ad23307efa85e05879b6 (patch) | |
tree | 85cd5851f9d9139c25291f08f04307b1340e58a3 /src/resolve/resolve-tool.c | |
parent | 24fcd009c3eb89f590bef96dd5495fd4ef796fd0 (diff) | |
download | systemd-ee5324aa04bb46a9a8e1ad23307efa85e05879b6.tar.gz |
tree-wide: voidify pager_open()
Even if pager_open() fails, in general, we should continue the operations.
All erroneous cases in pager_open() show log message in the function.
So, it is not necessary to check the returned value.
Diffstat (limited to 'src/resolve/resolve-tool.c')
-rw-r--r-- | src/resolve/resolve-tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolve-tool.c b/src/resolve/resolve-tool.c index 04f883654a..d1395b2e2c 100644 --- a/src/resolve/resolve-tool.c +++ b/src/resolve/resolve-tool.c @@ -1241,7 +1241,7 @@ static int status_ifindex(sd_bus *bus, int ifindex, const char *name, bool *empt goto finish; } - pager_open(arg_no_pager, false); + (void) pager_open(arg_no_pager, false); if (*empty_line) fputc('\n', stdout); @@ -1450,7 +1450,7 @@ static int status_global(sd_bus *bus, bool *empty_line) { goto finish; } - pager_open(arg_no_pager, false); + (void) pager_open(arg_no_pager, false); printf("%sGlobal%s\n", ansi_highlight(), ansi_normal()); STRV_FOREACH(i, global_info.dns) { |