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.
This commit is contained in:
@@ -207,7 +207,7 @@ static int list_machines(int argc, char *argv[], void *userdata) {
|
||||
|
||||
assert(bus);
|
||||
|
||||
pager_open(arg_no_pager, false);
|
||||
(void) pager_open(arg_no_pager, false);
|
||||
|
||||
r = sd_bus_call_method(bus,
|
||||
"org.freedesktop.machine1",
|
||||
@@ -363,7 +363,7 @@ static int list_images(int argc, char *argv[], void *userdata) {
|
||||
|
||||
assert(bus);
|
||||
|
||||
pager_open(arg_no_pager, false);
|
||||
(void) pager_open(arg_no_pager, false);
|
||||
|
||||
r = sd_bus_call_method(bus,
|
||||
"org.freedesktop.machine1",
|
||||
@@ -860,7 +860,7 @@ static int show_machine(int argc, char *argv[], void *userdata) {
|
||||
|
||||
properties = !strstr(argv[0], "status");
|
||||
|
||||
pager_open(arg_no_pager, false);
|
||||
(void) pager_open(arg_no_pager, false);
|
||||
|
||||
if (properties && argc <= 1) {
|
||||
|
||||
@@ -1213,7 +1213,7 @@ static int show_image(int argc, char *argv[], void *userdata) {
|
||||
|
||||
properties = !strstr(argv[0], "status");
|
||||
|
||||
pager_open(arg_no_pager, false);
|
||||
(void) pager_open(arg_no_pager, false);
|
||||
|
||||
if (argc <= 1) {
|
||||
|
||||
@@ -2543,7 +2543,7 @@ static int list_transfers(int argc, char *argv[], void *userdata) {
|
||||
double progress;
|
||||
int r;
|
||||
|
||||
pager_open(arg_no_pager, false);
|
||||
(void) pager_open(arg_no_pager, false);
|
||||
|
||||
r = sd_bus_call_method(bus,
|
||||
"org.freedesktop.import1",
|
||||
@@ -2758,7 +2758,7 @@ static int clean_images(int argc, char *argv[], void *userdata) {
|
||||
}
|
||||
|
||||
static int help(int argc, char *argv[], void *userdata) {
|
||||
pager_open(arg_no_pager, false);
|
||||
(void) pager_open(arg_no_pager, false);
|
||||
|
||||
printf("%s [OPTIONS...] {COMMAND} ...\n\n"
|
||||
"Send control commands to or query the virtual machine and container\n"
|
||||
|
||||
Reference in New Issue
Block a user