From 03221e746d36786962589895ddcba0f94404123c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 17 Mar 2023 14:26:14 +0900 Subject: bootctl: return 0 instead of EXIT_SUCCESS --- src/boot/bootctl-reboot-to-firmware.c | 2 +- src/boot/bootctl-uki.c | 4 ++-- src/boot/bootctl.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/boot') diff --git a/src/boot/bootctl-reboot-to-firmware.c b/src/boot/bootctl-reboot-to-firmware.c index 77e3ff12a9..91f259768c 100644 --- a/src/boot/bootctl-reboot-to-firmware.c +++ b/src/boot/bootctl-reboot-to-firmware.c @@ -11,7 +11,7 @@ int verb_reboot_to_firmware(int argc, char *argv[], void *userdata) { r = efi_get_reboot_to_firmware(); if (r > 0) { puts("active"); - return EXIT_SUCCESS; /* success */ + return 0; /* success */ } if (r == 0) { puts("supported"); diff --git a/src/boot/bootctl-uki.c b/src/boot/bootctl-uki.c index c0f263d434..b27abc73a1 100644 --- a/src/boot/bootctl-uki.c +++ b/src/boot/bootctl-uki.c @@ -211,7 +211,7 @@ int verb_kernel_identify(int argc, char *argv[], void *userdata) { else puts("pe"); - return EXIT_SUCCESS; + return 0; } int verb_kernel_inspect(int argc, char *argv[], void *userdata) { @@ -236,5 +236,5 @@ int verb_kernel_inspect(int argc, char *argv[], void *userdata) { } else puts("Kernel Type: pe"); - return EXIT_SUCCESS; + return 0; } diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index d8de09cab5..f984c3050e 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -489,7 +489,7 @@ static int run(int argc, char *argv[]) { return log_oom(); puts(path); - return EXIT_SUCCESS; + return 0; } /* Open up and mount the image */ -- cgit v1.2.1