diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-14 09:48:29 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-03-19 13:04:02 +0100 |
commit | ee5324aa04bb46a9a8e1ad23307efa85e05879b6 (patch) | |
tree | 85cd5851f9d9139c25291f08f04307b1340e58a3 /src/cgls | |
parent | man: mention 'status' is the default command for timedatectl (diff) | |
download | systemd-ee5324aa04bb46a9a8e1ad23307efa85e05879b6.tar.xz systemd-ee5324aa04bb46a9a8e1ad23307efa85e05879b6.zip |
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/cgls')
-rw-r--r-- | src/cgls/cgls.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index bd8c6a0059..1e92dabe0c 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -176,11 +176,9 @@ int main(int argc, char *argv[]) { if (r <= 0) goto finish; - if (!arg_no_pager) { - r = pager_open(arg_no_pager, false); - if (r > 0 && arg_full < 0) - arg_full = true; - } + r = pager_open(arg_no_pager, false); + if (r > 0 && arg_full < 0) + arg_full = true; output_flags = arg_all * OUTPUT_SHOW_ALL | |