diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-17 14:26:14 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-17 20:40:34 +0900 |
commit | 03221e746d36786962589895ddcba0f94404123c (patch) | |
tree | cbf00285b87a0a8866d7b95519e0d7c62bb1cbc7 | |
parent | ab94d98b29ffc42d3840c5b4ffde1acbc106f88e (diff) | |
download | systemd-03221e746d36786962589895ddcba0f94404123c.tar.gz |
bootctl: return 0 instead of EXIT_SUCCESS
-rw-r--r-- | src/boot/bootctl-reboot-to-firmware.c | 2 | ||||
-rw-r--r-- | src/boot/bootctl-uki.c | 4 | ||||
-rw-r--r-- | src/boot/bootctl.c | 2 |
3 files changed, 4 insertions, 4 deletions
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 */ |