]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: return 0 instead of EXIT_SUCCESS
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Mar 2023 05:26:14 +0000 (14:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Mar 2023 11:40:34 +0000 (20:40 +0900)
src/boot/bootctl-reboot-to-firmware.c
src/boot/bootctl-uki.c
src/boot/bootctl.c

index 77e3ff12a9b88e5efd77810e323bfce9920ded69..91f259768c00e0e888d01164a509fe2ba0252798 100644 (file)
@@ -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");
index c0f263d43419350b88cd7f0b425aa2eafccaa9ea..b27abc73a1043ec552a916c2b7632046d91de2c9 100644 (file)
@@ -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;
 }
index d8de09cab5470b2b7cd561e0d7688637c23b018c..f984c3050e9350455570c1d0f5a56fef1bdc1f13 100644 (file)
@@ -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 */