diff options
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index c4a8fc8bc4..b557a64e4a 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -34,7 +34,7 @@ #include "util.h" #include "verbs.h" -static bool arg_no_pager = false; +static PagerFlags arg_pager_flags = 0; static bool arg_legend = true; static bool arg_all = false; @@ -248,7 +248,7 @@ static int list_links(int argc, char *argv[], void *userdata) { if (c < 0) return c; - (void) pager_open(arg_no_pager, false); + (void) pager_open(arg_pager_flags); if (arg_legend) printf("%3s %-16s %-18s %-11s %-10s\n", @@ -874,7 +874,7 @@ static int link_status(int argc, char *argv[], void *userdata) { _cleanup_free_ LinkInfo *links = NULL; int r, c, i; - (void) pager_open(arg_no_pager, false); + (void) pager_open(arg_pager_flags); r = sd_netlink_open(&rtnl); if (r < 0) @@ -970,7 +970,7 @@ static int link_lldp_status(int argc, char *argv[], void *userdata) { if (c < 0) return c; - (void) pager_open(arg_no_pager, false); + (void) pager_open(arg_pager_flags); if (arg_legend) printf("%-16s %-17s %-16s %-11s %-17s %-16s\n", @@ -1121,7 +1121,7 @@ static int parse_argv(int argc, char *argv[]) { return version(); case ARG_NO_PAGER: - arg_no_pager = true; + arg_pager_flags |= PAGER_DISABLE; break; case ARG_NO_LEGEND: |