From: Yu Watanabe Date: Fri, 17 Mar 2023 05:26:14 +0000 (+0900) Subject: bootctl: return 0 instead of EXIT_SUCCESS X-Git-Tag: v254-rc1~989^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03221e746d36786962589895ddcba0f94404123c;p=thirdparty%2Fsystemd.git bootctl: return 0 instead of EXIT_SUCCESS --- diff --git a/src/boot/bootctl-reboot-to-firmware.c b/src/boot/bootctl-reboot-to-firmware.c index 77e3ff12a9b..91f259768c0 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 c0f263d4341..b27abc73a10 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 d8de09cab54..f984c3050e9 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 */