summaryrefslogtreecommitdiffstats
path: root/src/cgls
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-11-05 14:57:30 +0100
committerGitHub <noreply@github.com>2021-11-05 14:57:30 +0100
commit8389fd19d20370077f2d5601af0a089ec92ece05 (patch)
tree15402f17ca3b5fced203a7b8b3c79e8d6fe936e0 /src/cgls
parentmeson-render-jinja2: use ast.literal_eval() (diff)
parentMake pager_open() return void (diff)
downloadsystemd-8389fd19d20370077f2d5601af0a089ec92ece05.tar.xz
systemd-8389fd19d20370077f2d5601af0a089ec92ece05.zip
Merge pull request #20138 from keszybz/coding-style-variable-decls
A coding style tweak and checking of sd_notify() calls and voidification of pager_open()
Diffstat (limited to 'src/cgls')
-rw-r--r--src/cgls/cgls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c
index 487c90823e..775bd84ad2 100644
--- a/src/cgls/cgls.c
+++ b/src/cgls/cgls.c
@@ -191,8 +191,8 @@ static int run(int argc, char *argv[]) {
if (r <= 0)
return r;
- r = pager_open(arg_pager_flags);
- if (r > 0 && arg_full < 0)
+ pager_open(arg_pager_flags);
+ if (arg_full < 0 && pager_have())
arg_full = true;
if (arg_full > 0)