]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/sysctl/sysctl.c
basic/pager: convert the pager options to a flags argument
[thirdparty/systemd.git] / src / sysctl / sysctl.c
index 945ae3746b5d423fdd8f3c32f6d17b6dc8b5a0b4..9419f7bd73aa64bad923dbd9a22200233ec5139f 100644 (file)
@@ -24,7 +24,7 @@
 
 static char **arg_prefixes = NULL;
 static bool arg_cat_config = false;
-static bool arg_no_pager = false;
+static PagerFlags arg_pager_flags = 0;
 
 static int apply_all(OrderedHashmap *sysctl_options) {
         char *property, *value;
@@ -243,7 +243,7 @@ static int parse_argv(int argc, char *argv[]) {
                 }
 
                 case ARG_NO_PAGER:
-                        arg_no_pager = true;
+                        arg_pager_flags |= PAGER_DISABLE;
                         break;
 
                 case '?':
@@ -302,7 +302,7 @@ int main(int argc, char *argv[]) {
                 }
 
                 if (arg_cat_config) {
-                        (void) pager_open(arg_no_pager, false);
+                        (void) pager_open(arg_pager_flags);
 
                         r = cat_files(NULL, files, 0);
                         goto finish;